CVS code -
- General:
- Miscellaneous comment fixes. (DLR)
+ - Fix a few last instances of the current line number's being
+ saved as an int instead of a ssize_t. Changes to
+ renumber_all(), renumber(), do_alt_speller(), and
+ backup_lines(). (DLR)
- global.c:
shortcut_init()
- Simplify wording of nano_gotoline_msg. (Jordi)
- nano.c:
- renumber_all(), renumber()
- - When renumbering, properly use a ssize_t instead of an int.
- (DLR)
do_verbatim_input()
- If constant cursor position display is on when we finish, make
sure the cursor position is displayed properly. (DLR)
* otherwise the error string. */
const char *do_alt_speller(char *tempfile_name)
{
- int alt_spell_status, lineno_save = current->lineno;
+ int alt_spell_status;
size_t current_x_save = current_x, pww_save = placewewant;
- ssize_t current_y_save = current_y;
+ ssize_t lineno_save = current->lineno, current_y_save = current_y;
pid_t pid_spell;
char *ptr;
static int arglen = 3;
spellargs[0] = strtok(alt_speller, " ");
while ((ptr = strtok(NULL, " ")) != NULL) {
arglen++;
- spellargs = (char **)nrealloc(spellargs, arglen * sizeof(char *));
+ spellargs = (char **)nrealloc(spellargs, arglen *
+ sizeof(char *));
spellargs[arglen - 3] = ptr;
}
spellargs[arglen - 1] = NULL;
size_t i;
/* Generic loop variable. */
size_t current_x_save = current_x;
- int fl_lineno_save = first_line->lineno;
- int edittop_lineno_save = edittop->lineno;
- int current_lineno_save = current->lineno;
+ ssize_t fl_lineno_save = first_line->lineno;
+ ssize_t edittop_lineno_save = edittop->lineno;
+ ssize_t current_lineno_save = current->lineno;
#ifndef NANO_SMALL
bool old_mark_set = ISSET(MARK_ISSET);
- int mbb_lineno_save = 0;
+ ssize_t mbb_lineno_save = 0;
size_t mark_beginx_save = 0;
if (old_mark_set) {