diff options
| author | alex <alex@cloudware.io> | 2020-02-21 18:12:28 +0100 |
|---|---|---|
| committer | alex <alex@cloudware.io> | 2020-02-22 18:04:33 +0100 |
| commit | e824dd43eaa6969577b40694f71acde54f3a3f27 (patch) | |
| tree | 761341357ab3581f5429acc05514c0f5c868dea9 /test/sam/Makefile | |
| parent | d2407f9ebc089e11eb12054f614a37ba6dbcb1ef (diff) | |
| download | vis-e824dd43eaa6969577b40694f71acde54f3a3f27.tar.gz vis-e824dd43eaa6969577b40694f71acde54f3a3f27.tar.xz | |
sam: re-take range after pre-save hooks are run
A vis.events.FILE_SAVE_PRE callback may mutate the file text,
making the original range passed to cmd_write incorrect.
It is unclear how to realign the range after the callback
is done for the cases where an active selection in visual mode
is present or an explicit range like :1,2w! was specified.
However, this commit resolves the issue for the case where
the whole file is expected to be written.
Diffstat (limited to 'test/sam/Makefile')
0 files changed, 0 insertions, 0 deletions
