aboutsummaryrefslogtreecommitdiff
path: root/test/core/array-test.c
diff options
context:
space:
mode:
authoralex <alex@cloudware.io>2020-02-21 18:12:28 +0100
committeralex <alex@cloudware.io>2020-02-22 18:04:33 +0100
commite824dd43eaa6969577b40694f71acde54f3a3f27 (patch)
tree761341357ab3581f5429acc05514c0f5c868dea9 /test/core/array-test.c
parentd2407f9ebc089e11eb12054f614a37ba6dbcb1ef (diff)
downloadvis-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/core/array-test.c')
0 files changed, 0 insertions, 0 deletions