- nano.c:do_prev_word() - Fixed goofy logic setting x pos to value of last line when hitting the beginning of first line, prog should simply abort.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@865 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
b3655b4c5e
commit
878ced39bf
|
@ -26,7 +26,9 @@ CVS code -
|
||||||
(David Lawrence Ramsey).
|
(David Lawrence Ramsey).
|
||||||
- nano.c:
|
- nano.c:
|
||||||
- New function do_prev_word, similar to do_next_word. Hard coded as
|
- New function do_prev_word, similar to do_next_word. Hard coded as
|
||||||
Alt-space, as next word is hard coded as control-space.
|
Alt-space, as next word is hard coded as control-space. Fixed
|
||||||
|
goofy logic setting x pos to value of last line when hitting the
|
||||||
|
beginning of first line, prog should simply abort.
|
||||||
- rcfile.c:
|
- rcfile.c:
|
||||||
- Fix incorrect number of rc options (David Lawrence Ramsey).
|
- Fix incorrect number of rc options (David Lawrence Ramsey).
|
||||||
- po/sv.po:
|
- po/sv.po:
|
||||||
|
|
13
nano.c
13
nano.c
|
@ -839,9 +839,10 @@ void do_prev_word(void)
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
if (fileptr->prev != NULL)
|
if (fileptr->prev != NULL)
|
||||||
i = strlen(fileptr->prev->data) - 1;
|
i = strlen(fileptr->prev->data) - 1;
|
||||||
else if (fileptr == fileage && filebot != NULL)
|
else if (fileptr == fileage && filebot != NULL) {
|
||||||
i = strlen(filebot->data) - 1;
|
current_x = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -862,8 +863,10 @@ void do_prev_word(void)
|
||||||
}
|
}
|
||||||
if (fileptr->prev != NULL)
|
if (fileptr->prev != NULL)
|
||||||
i = strlen(fileptr->prev->data) - 1;
|
i = strlen(fileptr->prev->data) - 1;
|
||||||
else if (fileptr == fileage && filebot != NULL)
|
else if (fileptr == fileage && filebot != NULL) {
|
||||||
i = strlen(filebot->data) - 1;
|
current_x = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (fileptr == NULL)
|
if (fileptr == NULL)
|
||||||
current = fileage;
|
current = fileage;
|
||||||
|
|
Loading…
Reference in New Issue