We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02274d3 commit 0fc59fdCopy full SHA for 0fc59fd
keymap/vim.js
@@ -4338,7 +4338,12 @@
4338
} else if (cm.doc.history.lastSelOrigin == '*mouse') {
4339
// Reset lastHPos if mouse click was done in normal mode.
4340
vim.lastHPos = cm.doc.getCursor().ch;
4341
- } else if (vim.visualMode) {
+ }
4342
+ if (cm.somethingSelected()) {
4343
+ vim.visualMode = true;
4344
+ cm.setOption('showCursorWhenSelecting', false);
4345
4346
+ if (vim.visualMode) {
4347
var from, head;
4348
from = head = cm.getCursor('head');
4349
var anchor = cm.getCursor('anchor');
@@ -4352,7 +4357,6 @@
4352
4357
vim.fakeCursor.clear();
4353
4358
}
4354
4359
vim.fakeCursor = cm.markText(from, to, {className: 'cm-animate-fat-cursor'});
4355
- cm.setOption('showCursorWhenSelecting', false);
4356
4360
4361
4362
0 commit comments