* Copyright (C) 1996, 1997, 1998, 1999, 2000 Michael R. Elkins
* <me@cs.hmc.edu>
* Copyright (C) 1999, 2000 Thomas Roessler <roessler@guug.de>
- *
+ *
* 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 St, Fifth Floor,
{
assert(s != NULL);
- return
+ return
#ifdef ENABLE_UTF8
use_utf8 ? (mbstowcs(NULL, s, 0) != (size_t)-1) :
#endif
while (TRUE) {
#ifndef NANO_TINY
if (execute) {
- msg =
+ msg =
#ifdef ENABLE_MULTIBUFFER
- ISSET(MULTIBUFFER) ?
+ ISSET(MULTIBUFFER) ?
_("Command to execute in new buffer [from %s] ") :
#endif
_("Command to execute [from %s] ");
#endif
msg =
#ifdef ENABLE_MULTIBUFFER
- ISSET(MULTIBUFFER) ?
+ ISSET(MULTIBUFFER) ?
_("File to insert into new buffer [from %s] ") :
#endif
_("File to insert [from %s] ");
for (s = *shortcutage; s->next != NULL; s = s->next)
;
s->next = (shortcut *)nmalloc(sizeof(shortcut));
- s = s->next;
+ s = s->next;
}
s->ctrlval = ctrlval;
curs_set(1);
refresh_func();
- /* The help_init() at the beginning allocated help_text. Since
+ /* The help_init() at the beginning allocated help_text. Since
* help_text has now been written to the screen, we don't need it
* anymore. */
free(help_text);
}
#endif
-/* This function allocates help_text, and stores the help string in it.
+/* This function allocates help_text, and stores the help string in it.
* help_text should be NULL initially. */
void help_init(void)
{
{
char *disp;
int numchars;
-
+
assert(str != NULL);
disp = display_string(str, 0, (COLS / 2) + 1, FALSE);
/* Read in a stream of all available characters, and return the length
* of the string in kbinput_len. Translate the first few characters of
* the input into the corresponding multibyte value if possible. After
- * that, leave the input as-is. */
+ * that, leave the input as-is. */
int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
{
int *kbinput, *retval;
void blank_line(WINDOW *win, int y, int x, int n)
{
wmove(win, y, x);
+
for (; n > 0; n--)
waddch(win, ' ');
}
void blank_edit(void)
{
int i;
+
for (i = 0; i < editwinrows; i++)
blank_line(edit, i, 0, COLS);
}
converted[index++] = whitespace[i];
} else
#endif
- converted[index++] = ' ';
+ converted[index++] = ' ';
start_col++;
while (start_col % tabsize != 0) {
converted[index++] = ' ';
converted[index++] = whitespace[i];
} else
#endif
- converted[index++] = ' ';
+ converted[index++] = ' ';
start_col++;
/* If buf contains a non-control character, interpret it. If
* buf contains an invalid multibyte non-control character,
return;
}
- /* Display the current cursor position on the statusbar, and set
+ /* Display the current cursor position on the statusbar, and set
* disable_cursorpos to FALSE. */
linepct = 100 * openfile->current->lineno /
openfile->filebot->lineno;