VSCodeVim/Vim

Repeating `gb` once when selecting Multi-Cursors means subsequent `gb` are repeated that amount

开放

#4,075 创建于 2019年9月15日

 (0 条评论) (2 个反应) (0 位负责人)TypeScript (1,271 个派生)batch import
area/multicursorhelp wantedkind/bug

仓库指标

星标
 (12,664 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug If you use gb with a number, subsequent uses of gb are repeated that same amount. Eg 10gb gb would result in 20 cursors, not 11.

Similarly, if I do gb, 10gb, gb, I get 21 cursors instead of 12.

To Reproduce

Lets say I have 10 lines, each with the same single word

vim
vim
...
vim
vim

Scenario A) I put a cursor on the first line, and in normal mode do 5gb then gb.

Scenario B) I put a cursor on the first line, and in normal mode do gb, 5gb, gb.

Expected behavior Scenario A) I would expect 6 cursors but there are 10.

Scenario B) I would expect 7 cursors but there are 10 (there would be 11 if there were more lines).

Screenshots

Reproduction Steps Screenshot

Environment (please complete the following information):

  • Issue Type: Bug
  • Extension Name: vim
  • Extension Version: 1.10.2
  • OS Version: Linux x64 5.2.14-arch2-1-ARCH
  • VSCode version: 1.38.0

Additional context N/A

贡献者指南