Mercurial > vim
diff src/mark.c @ 10285:cd16ef948ad1 v8.0.0039
commit https://github.com/vim/vim/commit/156919f99afd1ac11d19d4270afbc1afb7245640
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 15 20:46:20 2016 +0200
patch 8.0.0039
Problem: When Vim 8 reads an old viminfo and exits, the next time marks are
not read from viminfo. (Ned Batchelder)
Solution: Set a mark when it wasn't set before, even when the timestamp is
zero. (closes #1170)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Oct 2016 21:00:04 +0200 |
parents | 4aead6a9b7a9 |
children | 44e9340dc604 |
line wrap: on
line diff
--- a/src/mark.c +++ b/src/mark.c @@ -1597,7 +1597,8 @@ handle_viminfo_mark(garray_T *values, in if (fm != NULL) { - if (vi_namedfm != NULL || fm->time_set < timestamp || force) + if (vi_namedfm != NULL || fm->fmark.mark.lnum == 0 + || fm->time_set < timestamp || force) { fm->fmark.mark.lnum = lnum; fm->fmark.mark.col = col;