2008-05-31 Chris Allegretta <chrisa@asty.org>
- * global.c: Fix for compile error when --disable-speller is used (Savannah bug 23227 by Mike Frysinger)
+ * files.c,proto.h,text.c: Fix for conflicts with AIX curses
+ variables, from William Jojo <jojowil@hvcc.edu>
+
+2008-05-31 Chris Allegretta <chrisa@asty.org>
+ * global.c: Fix for compile error when --disable-speller is used
+ (Savannah bug 23227 by Mike Frysinger)
2008-05-31 Chris Allegretta <chrisa@asty.org>
* Fix for seg fault when window size too small, by
} else if (!*lastwastab || num_matches < 2)
*lastwastab = TRUE;
else {
- int longest_name = 0, columns, editline = 0;
+ int longest_name = 0, ncols, editline = 0;
/* Now we show a list of the available choices. */
assert(num_matches > 1);
/* Each column will be (longest_name + 2) columns wide, i.e.
* two spaces between columns, except that there will be
* only one space after the last column. */
- columns = (COLS + 1) / (longest_name + 2);
+ ncols = (COLS + 1) / (longest_name + 2);
/* Blank the edit window, and print the matches out
* there. */
char *disp;
wmove(edit, editline, (longest_name + 2) *
- (match % columns));
+ (match % ncols));
- if (match % columns == 0 &&
+ if (match % ncols == 0 &&
editline == editwinrows - 1 &&
- num_matches - match > columns) {
+ num_matches - match > ncols) {
waddstr(edit, _("(more)"));
break;
}
waddstr(edit, disp);
free(disp);
- if ((match + 1) % columns == 0)
+ if ((match + 1) % ncols == 0)
editline++;
}
* blank, as does a '\n' if newline is TRUE. */
ssize_t break_line(const char *line, ssize_t goal
#ifndef DISABLE_HELP
- , bool newline
+ , bool newln
#endif
)
{
if (is_blank_mbchar(line)
#ifndef DISABLE_HELP
- || (newline && *line == '\n')
+ || (newln && *line == '\n')
#endif
) {
blank_loc = cur_loc;
#ifndef DISABLE_HELP
- if (newline && *line == '\n')
+ if (newln && *line == '\n')
break;
#endif
}
if (is_blank_mbchar(line)
#ifndef DISABLE_HELP
- || (newline && *line == '\n')
+ || (newln && *line == '\n')
#endif
) {
if (!found_blank)
while (*line != '\0' && (is_blank_mbchar(line)
#ifndef DISABLE_HELP
- || (newline && *line == '\n')
+ || (newln && *line == '\n')
#endif
)) {
#ifndef DISABLE_HELP
- if (newline && *line == '\n')
+ if (newln && *line == '\n')
break;
#endif
void do_wordlinechar_count(void)
{
size_t words = 0, chars = 0;
- ssize_t lines = 0;
+ ssize_t nlines = 0;
size_t current_x_save = openfile->current_x;
size_t pww_save = openfile->placewewant;
filestruct *current_save = openfile->current;
/* Get the total line and character counts, as "wc -l" and "wc -c"
* do, but get the latter in multibyte characters. */
if (old_mark_set) {
- lines = openfile->filebot->lineno -
+ nlines = openfile->filebot->lineno -
openfile->fileage->lineno + 1;
chars = get_totsize(openfile->fileage, openfile->filebot);
unpartition_filestruct(&filepart);
openfile->mark_set = TRUE;
} else {
- lines = openfile->filebot->lineno;
+ nlines = openfile->filebot->lineno;
chars = openfile->totsize;
}
/* Display the total word, line, and character counts on the
* statusbar. */
statusbar(_("%sWords: %lu Lines: %ld Chars: %lu"), old_mark_set ?
- _("In Selection: ") : "", (unsigned long)words, (long)lines,
+ _("In Selection: ") : "", (unsigned long)words, (long)nlines,
(unsigned long)chars);
}
#endif /* !NANO_TINY */