0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.4.634

Problem:    Marks are not restored after redo + undo.
Solution:   Fix the way marks are restored. (Olaf Dabrunz)
This commit is contained in:
Bram Moolenaar
2015-02-17 13:43:40 +01:00
parent be20f9fa5d
commit f65aad5554
8 changed files with 14 additions and 2 deletions

View File

@@ -2847,11 +2847,14 @@ u_undoredo(undo)
* restore marks from before undo/redo
*/
for (i = 0; i < NMARKS; ++i)
{
if (curhead->uh_namedm[i].lnum != 0)
{
curbuf->b_namedm[i] = curhead->uh_namedm[i];
if (namedm[i].lnum != 0)
curhead->uh_namedm[i] = namedm[i];
}
else
curhead->uh_namedm[i].lnum = 0;
}
if (curhead->uh_visual.vi_start.lnum != 0)
{
curbuf->b_visual = curhead->uh_visual;