Updating position history only when 'positionlog' is set.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5601 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
68ab4b848b
commit
f96f4fe616
|
@ -5,6 +5,8 @@
|
||||||
is set. This fixes a bug unconsciously reported by Mike Frysinger.
|
is set. This fixes a bug unconsciously reported by Mike Frysinger.
|
||||||
* src/files.c (do_lockfile): Plug a couple of memory leaks.
|
* src/files.c (do_lockfile): Plug a couple of memory leaks.
|
||||||
* src/files.c (update_poshistory): Plug another memory leak.
|
* src/files.c (update_poshistory): Plug another memory leak.
|
||||||
|
* src/files.c (close_buffer): Update position history only when
|
||||||
|
the option 'positionlog' is set.
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -588,7 +588,9 @@ bool close_buffer(bool quiet)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
#ifndef DISABLE_HISTORIES
|
#ifndef DISABLE_HISTORIES
|
||||||
update_poshistory(openfile->filename, openfile->current->lineno, xplustabs() + 1);
|
if (ISSET(POS_HISTORY))
|
||||||
|
update_poshistory(openfile->filename,
|
||||||
|
openfile->current->lineno, xplustabs() + 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Switch to the next file buffer. */
|
/* Switch to the next file buffer. */
|
||||||
|
|
Loading…
Reference in New Issue