You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A macro that inserts characters across multiple lines inserts a different number of characters depending on how many lines it affected when the macro was recorded.
To Reproduce
I made the following macro
$<C-v>%I//<Esc>0
Which when run while on the same line as a function declaration as seen below
Should comment out the entire function. Which it does when the command is run manually.
When the macro is executed, it will insert extra characters as seen below
I have confirmed that this macro runs as expected when used in a fresh NeoVim install, but will not work in VSCodeVim even with the NeoVim setting enabled.
The number of characters inserted by the macro is dependent on how many lines were involved in it's recording. So if the function you record the macro with is longer then it will insert more characters when rerun and if it's shorter then it will insert less. If the function is one line (as seen below) when the macro is recorded then the macro will work as expected and only insert one set of characters.
Expected behavior
You would expect the macro to insert one set of // no matter how many lines the macro covers when it is recorded.
Environment (please complete the following information):
Extension (VsCodeVim) version: 1.28.1
VSCode version: 1.94
OS: Windows
The text was updated successfully, but these errors were encountered:
Describe the bug
A macro that inserts characters across multiple lines inserts a different number of characters depending on how many lines it affected when the macro was recorded.
To Reproduce
I made the following macro
$<C-v>%I//<Esc>0
Which when run while on the same line as a function declaration as seen below
Should comment out the entire function. Which it does when the command is run manually.
When the macro is executed, it will insert extra characters as seen below
I have confirmed that this macro runs as expected when used in a fresh NeoVim install, but will not work in VSCodeVim even with the NeoVim setting enabled.
The number of characters inserted by the macro is dependent on how many lines were involved in it's recording. So if the function you record the macro with is longer then it will insert more characters when rerun and if it's shorter then it will insert less. If the function is one line (as seen below) when the macro is recorded then the macro will work as expected and only insert one set of characters.
Expected behavior
You would expect the macro to insert one set of // no matter how many lines the macro covers when it is recorded.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: