"gq" is not working properly when it is supposed to join two lines
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
- Set vim.textwidth to some value (I use 35)
- Type two lines, e.g.
- Put the cursor on the first line and then press "gq" then "j"
- Result:
Expected behavior
After pressing "gq+j" it should become

Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.21.7
- VSCode version: 1.58.0
- OS: Windows 10
Additional context This bug should be caused by update 1.20.2.
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.