Vim icon indicating copy to clipboard operation
Vim copied to clipboard

"gq" is not working properly when it is supposed to join two lines

Open XiaoCasd opened this issue 3 years ago • 1 comments

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

  1. Set vim.textwidth to some value (I use 35)
  2. Type two lines, e.g. image
  3. Put the cursor on the first line and then press "gq" then "j"
  4. Result: image

Expected behavior After pressing "gq+j" it should become image

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.

XiaoCasd avatar Sep 03 '21 21:09 XiaoCasd