Merge pull request #2399 from kevinushey/patch/vim-colon-selection
[vim] don't select range specifier on `:` insertion
This commit is contained in:
commit
cb0816b183
1 changed files with 3 additions and 3 deletions
|
|
@ -807,7 +807,7 @@ dom.importCssString(".normal-mode .ace_cursor{\
|
|||
if (inp) {
|
||||
if (options.value) {
|
||||
inp.value = options.value;
|
||||
inp.select();
|
||||
if (options.select !== false) inp.select();
|
||||
}
|
||||
|
||||
if (options.onInput)
|
||||
|
|
@ -2058,7 +2058,7 @@ dom.importCssString(".normal-mode .ace_cursor{\
|
|||
} else {
|
||||
if (vim.visualMode) {
|
||||
showPrompt(cm, { onClose: onPromptClose, prefix: ':', value: '\'<,\'>',
|
||||
onKeyDown: onPromptKeyDown});
|
||||
onKeyDown: onPromptKeyDown, select: false});
|
||||
} else {
|
||||
showPrompt(cm, { onClose: onPromptClose, prefix: ':',
|
||||
onKeyDown: onPromptKeyDown});
|
||||
|
|
@ -4288,7 +4288,7 @@ dom.importCssString(".normal-mode .ace_cursor{\
|
|||
function dialog(cm, template, shortText, onClose, options) {
|
||||
if (cm.openDialog) {
|
||||
cm.openDialog(template, onClose, { bottom: true, value: options.value,
|
||||
onKeyDown: options.onKeyDown, onKeyUp: options.onKeyUp });
|
||||
onKeyDown: options.onKeyDown, onKeyUp: options.onKeyUp, select: options.select });
|
||||
}
|
||||
else {
|
||||
onClose(prompt(shortText, ''));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue