don't select initial text on ':'
This commit is contained in:
parent
ed5c38b7c8
commit
e551b090b7
1 changed files with 3 additions and 4 deletions
|
|
@ -571,7 +571,6 @@ define(function(require, exports, module) {
|
|||
highlight.session.on("change", highlight.updateOnChange);
|
||||
}
|
||||
var re = new RegExp(o.query.source, "gmi");
|
||||
console.log(re)
|
||||
this.$searchHighlight = o.highlight = highlight;
|
||||
this.$searchHighlight.setRegexp(re);
|
||||
this.ace.renderer.updateBackMarkers();
|
||||
|
|
@ -797,7 +796,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)
|
||||
|
|
@ -2029,7 +2028,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});
|
||||
|
|
@ -4205,7 +4204,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