Checking the position history only when option 'positionlog' is set.
This fixes a bug reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5597 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
d8801ec10e
Коммит
f8ed6bb099
@ -1,6 +1,9 @@
|
|||||||
2016-01-29 Benno Schulenberg <bensberg@justemail.net>
|
2016-01-29 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/files.c (do_insertfile): Do display the buffer when configured
|
* src/files.c (do_insertfile): Do display the buffer when configured
|
||||||
with only --disable-histories. This fixes Savannah bug #47011.
|
with only --disable-histories. This fixes Savannah bug #47011.
|
||||||
|
* src/nano.c (main): For second or later files on the command line,
|
||||||
|
only check the position history when option 'positionlog' is set.
|
||||||
|
This fixes a bug that was unconsciously reported by Mike Frysinger.
|
||||||
|
|
||||||
2016-01-26 Benno Schulenberg <bensberg@justemail.net>
|
2016-01-26 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/files.c (update_poshistory): Do not add directories to the
|
* src/files.c (update_poshistory): Do not add directories to the
|
||||||
|
@ -2628,7 +2628,7 @@ int main(int argc, char **argv)
|
|||||||
icol = 0;
|
icol = 0;
|
||||||
}
|
}
|
||||||
#ifndef DISABLE_HISTORIES
|
#ifndef DISABLE_HISTORIES
|
||||||
else {
|
else if (ISSET(POS_HISTORY)) {
|
||||||
ssize_t savedposline, savedposcol;
|
ssize_t savedposline, savedposcol;
|
||||||
/* If edited before, restore the last cursor position. */
|
/* If edited before, restore the last cursor position. */
|
||||||
if (check_poshistory(argv[i], &savedposline, &savedposcol))
|
if (check_poshistory(argv[i], &savedposline, &savedposcol))
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user