mirror of
https://github.com/neovim/neovim.git
synced 2025-11-20 17:16:31 +00:00
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
7c71db3a58
Co-authored-by: Christian Brabandt <cb@256bit.org>