4 Commits

Author SHA1 Message Date
Ingo Karkat 30679780eb Add ingo#undo#IsEnabled() 2018-01-25 10:25:34 +01:00
Ingo Karkat c22b3d577b Use built-in changenr() in ingo#undo#GetChangeNumber(); actually, the entire function could be replaced by the built-in, if it would not just return one less than the number of the undone change after undo
We want the result to represent the current change, regardless of what undo / redo was done earlier. Change the implementation to test for whether the current change is the last in the buffer, and if not, make a no-op change to get to an explicit change state.
2017-05-26 17:37:22 +02:00
Ingo Karkat 2e4830c2c9 Retire ingo#undo#GetChangeNumber(); this is provided by the built-in changenr() since Vim version 7.0 2017-05-26 17:30:16 +02:00
Ingo Karkat 8a9e0ae503 file creation 2017-05-26 17:30:00 +02:00