Open XiaoCasd opened 3 years ago
Same problem seems to affect {Visual}gq
.
I found out the issue seems to be happening only in with end of line sequence set to CRLF. If I switch the end of line sequence to LF, the gq
command behaves as expected. I'm guessing the gq
command is not handling the \r\n
sequence correctly.
Describe the bug Suppose I have two lines, each of them has fewer words than the "vim.textwidth". When my cursor is on the first line, if I press "gq+j", the two lines can not be joined, but rather whitespace will be placed before the second line.
To Reproduce
Expected behavior After pressing "gq+j" it should become
Environment (please complete the following information):
Additional context This bug should be caused by update 1.20.2.