diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-23 06:51:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 06:51:10 +0800 |
commit | dc466f9a63ede5e2bbddc33688c0c972abfe9a52 (patch) | |
tree | 5bf20d770b02bba3aa4f2c48d5420f47c2aa3b50 /runtime/lua/vim/vimhelp.lua | |
parent | a7eb1e60040d5e0c2ad5021b410683cabca26ba4 (diff) | |
download | rneovim-dc466f9a63ede5e2bbddc33688c0c972abfe9a52.tar.gz rneovim-dc466f9a63ede5e2bbddc33688c0c972abfe9a52.tar.bz2 rneovim-dc466f9a63ede5e2bbddc33688c0c972abfe9a52.zip |
vim-patch:9.1.0043: ml_get: invalid lnum when :s replaces visual selection (#27140)
Problem: ml_get: invalid lnum when :s replaces visual selection
(@ropery)
Solution: substitute may decrement the number of lines in a buffer,
so validate, that the bottom lines of the visual selection
stays within the max buffer line
fixes: vim/vim#13890
closes: vim/vim#13892
https://github.com/vim/vim/commit/7c71db3a58f658b4329b82ab603efa928d17bdbc
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/vimhelp.lua')
0 files changed, 0 insertions, 0 deletions