0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1574

Problem:    ":undo 0" does not work. (Florent Fayolle)
Solution:   Make it undo all the way. (closes #688)
This commit is contained in:
Bram Moolenaar
2016-03-15 17:43:55 +01:00
parent ce2ec0a82a
commit d22e9465f6
4 changed files with 11 additions and 3 deletions

View File

@@ -2286,7 +2286,14 @@ undo_time(
* Init "closest" to a value we can't reach. */
if (absolute)
{
target = step;
if (step == 0)
{
/* target 0 does not exist, got to 1 and above it. */
target = 1;
above = TRUE;
}
else
target = step;
closest = -1;
}
else