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:
@@ -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
|
||||
|
Reference in New Issue
Block a user