diff options
author | Kevin McCarthy <kevin@8t8.us> | 2018-12-31 16:06:53 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2018-12-31 16:06:53 -0800 |
commit | 443295ee65c3ebc5085fcab3cc9d533b0fac4f0f (patch) | |
tree | dc425cf8028e3b78c635148bfc0a905b1e800327 /edit.c | |
parent | 1c59c27129b45b9f2cfd630428f57c643276b906 (diff) |
Remove trailing whitespace.
The result of
find . -name "*.[ch]" -exec emacs -batch {} \
--eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
Diffstat (limited to 'edit.c')
-rw-r--r-- | edit.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,20 +1,20 @@ /* * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ + */ /* Close approximation of the mailx(1) builtin editor for sending mail. */ @@ -100,7 +100,7 @@ be_snarf_file (const char *path, char **buf, int *max, int *len, int verbose) FILE *f; char tmp[LONG_STRING]; struct stat sb; - + if ((f = fopen (path, "r"))) { fstat (fileno (f), &sb); @@ -124,7 +124,7 @@ static int be_barf_file (const char *path, char **buf, int buflen) { FILE *f; int i; - + if ((f = fopen (path, "w")) == NULL) /* __FOPEN_CHECKED__ */ { addstr (strerror (errno)); @@ -324,7 +324,7 @@ int mutt_builtin_editor (const char *path, HEADER *msg, HEADER *cur) int done = 0; int i; char *p; - + scrollok (stdscr, TRUE); be_edit_header (msg->env, 0); @@ -482,7 +482,7 @@ int mutt_builtin_editor (const char *path, HEADER *msg, HEADER *cur) safe_realloc (&buf, sizeof (char *) * (bufmax += 25)); buf[buflen++] = safe_strdup (tmp[1] == '~' ? tmp + 1 : tmp); } - + tmp[0] = 0; } |