remove delete-on-autocomplete functionality

This commit is contained in:
Albert Yi
2018-10-15 14:20:14 -07:00
parent 2aabaf56d8
commit 3fbe1629e0

View File

@@ -309,11 +309,6 @@ Autocomplete.insert_completion = function(input, completion) {
var regexp = new RegExp("(" + Autocomplete.TAG_PREFIXES + ")?\\S+$", "g");
before_caret_text = before_caret_text.replace(regexp, "$1") + completion + " ";
if (Utility.meta('current-user-id') === '1') {
// is this actually better?
after_caret_text = after_caret_text.replace(/^\S+/, "");
}
input.value = before_caret_text + after_caret_text;
input.selectionStart = input.selectionEnd = before_caret_text.length;
};