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 /curs_lib.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 'curs_lib.c')
-rw-r--r-- | curs_lib.c | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -1,21 +1,21 @@ /* * Copyright (C) 1996-2002,2010,2012-2013 Michael R. Elkins <me@mutt.org> * Copyright (C) 2004 g10 Code GmbH - * + * * 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. - */ + */ #if HAVE_CONFIG_H # include "config.h" @@ -213,7 +213,7 @@ int _mutt_get_field (const char *field, char *buf, size_t buflen, int complete, int x; ENTER_STATE *es = mutt_new_enter_state(); - + do { #if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) @@ -261,7 +261,7 @@ void mutt_clear_error (void) void mutt_edit_file (const char *editor, const char *data) { char cmd[LONG_STRING]; - + mutt_endwin (NULL); mutt_expand_file_fmt (cmd, sizeof (cmd), editor, data); if (mutt_system (cmd)) @@ -296,7 +296,7 @@ int mutt_yesorno (const char *msg, int def) char answer[2]; answer[1] = 0; - + reyes_ok = (expr = nl_langinfo (YESEXPR)) && expr[0] == '^' && !REGCOMP (&reyes, expr, REG_NOSUB); reno_ok = (expr = nl_langinfo (NOEXPR)) && expr[0] == '^' && @@ -369,7 +369,7 @@ int mutt_yesorno (const char *msg, int def) #ifdef HAVE_LANGINFO_YESEXPR answer[0] = ch.ch; - if (reyes_ok ? + if (reyes_ok ? (regexec (& reyes, answer, 0, 0, 0) == 0) : #else if ( @@ -397,7 +397,7 @@ int mutt_yesorno (const char *msg, int def) FREE (&answer_string); -#ifdef HAVE_LANGINFO_YESEXPR +#ifdef HAVE_LANGINFO_YESEXPR if (reyes_ok) regfree (& reyes); if (reno_ok) @@ -857,7 +857,7 @@ void mutt_show_error (void) { if (option (OPTKEEPQUIET)) return; - + SETCOLOR (option (OPTMSGERR) ? MT_COLOR_ERROR : MT_COLOR_MESSAGE); mutt_window_mvaddstr (MuttMessageWindow, 0, 0, Errorbuf); NORMAL_COLOR; @@ -876,7 +876,7 @@ void mutt_endwin (const char *msg) mutt_refresh(); endwin (); } - + if (msg && *msg) { puts (msg); @@ -890,7 +890,7 @@ void mutt_perror (const char *s) { char *p = strerror (errno); - dprint (1, (debugfile, "%s: %s (errno = %d)\n", s, + dprint (1, (debugfile, "%s: %s (errno = %d)\n", s, p ? p : "unknown error", errno)); mutt_error ("%s: %s (errno = %d)", s, p ? p : _("unknown error"), errno); } @@ -929,13 +929,13 @@ int mutt_do_pager (const char *banner, pager_t *info) { int rc; - + if (!Pager || mutt_strcmp (Pager, "builtin") == 0) rc = mutt_pager (banner, tempfile, do_color, info); else { char cmd[STRING]; - + mutt_endwin (NULL); mutt_expand_file_fmt (cmd, sizeof(cmd), Pager, tempfile); if (mutt_system (cmd) == -1) @@ -977,7 +977,7 @@ int _mutt_enter_fname (const char *prompt, char *buf, size_t blen, int buffy, in { mutt_refresh (); buf[0] = 0; - _mutt_select_file (buf, blen, MUTT_SEL_FOLDER | (multiple ? MUTT_SEL_MULTI : 0), + _mutt_select_file (buf, blen, MUTT_SEL_FOLDER | (multiple ? MUTT_SEL_MULTI : 0), files, numfiles); } else @@ -1073,12 +1073,12 @@ void mutt_flushinp (void) void mutt_curs_set (int cursor) { static int SavedCursor = 1; - + if (cursor < 0) cursor = SavedCursor; else SavedCursor = cursor; - + if (curs_set (cursor) == ERR) { if (cursor == 1) /* cnorm */ curs_set (2); /* cvvis */ |