diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-26 07:03:24 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-01-26 07:06:48 +0800 |
commit | c5a7df79a7692c044cb69e38c7c6b71f44d4656d (patch) | |
tree | 8eca83450056f36886aff09bbdc293692b596961 /runtime/lua | |
parent | 52d8741c78096a7606bf4f689d7e740372633dc6 (diff) | |
download | rneovim-c5a7df79a7692c044cb69e38c7c6b71f44d4656d.tar.gz rneovim-c5a7df79a7692c044cb69e38c7c6b71f44d4656d.tar.bz2 rneovim-c5a7df79a7692c044cb69e38c7c6b71f44d4656d.zip |
vim-patch:9.1.0056: wrong number of trailing spaces inserted after blockwise put
Problem: Incorrect number of trailing spaces inserted for multibyte
characters when pasting a blockwise register in blockwise visual
mode (VanaIgr)
Solution: Skip over trailing UTF-8 bytes when computing the number of trailing
spaces (VanaIgr)
When pasting in blockwise visual mode, and the register type is <CTRL-V>, Vim
aligns the text after the replaced area by inserting spaces after pasted
lines that are shorter than the longest line. When a shorter line contains
multibyte characters, each trailing UTF-8 byte's width is counted in addition
to the width of the character itself. Each trailing byte counts as being 4
cells wide (since it would be displayed as <xx>).
closes: vim/vim#13909
https://github.com/vim/vim/commit/6638ec8afa9875ff565020536954c424d5f6f27d
Co-authored-by: VanaIgr <vanaigranov@gmail.com>
Diffstat (limited to 'runtime/lua')
0 files changed, 0 insertions, 0 deletions