diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-09 13:52:17 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-09 14:57:27 +0100 |
| commit | ff45c36bab3952bb633dd0b8e6c4c90dab9f7e2a (patch) | |
| tree | 2bc5013b5e454e476a876e478737161a976ce40a /vis-lua.h | |
| parent | b05cd28c904994188be55e7bcecf98ef0077b6ba (diff) | |
| download | vis-ff45c36bab3952bb633dd0b8e6c4c90dab9f7e2a.tar.gz vis-ff45c36bab3952bb633dd0b8e6c4c90dab9f7e2a.tar.xz | |
vis: perform undo snapshotting more rarerly
Do not take snapshots after every operation in insert/replace mode.
As an example up until now we would take a snapshot after every
<Backspace>/<Delete> press, hence when undoing changes each character
would be restored individually. The same applies for <C-w> and related
actions.
From now on we only snaphost when:
- transitioning from insert/replace mode to normal mode (but not when
switching to operator pending mode)
- an operation takes place from normal mode
- an idle time expires in normal/replace mode
Diffstat (limited to 'vis-lua.h')
0 files changed, 0 insertions, 0 deletions
