handle zero-length match in v4 completions

use start=None instead of `-0` to indicate start == end
(which is already None indicating the same value).
Min RK 11 years ago
parent 987b338758
commit a9896e7404

@ -183,7 +183,9 @@ define([
// interpret end=null as current position,
// and negative start relative to that
end = utils.to_absolute_cursor_pos(this.editor, cur);
if (start < 0) {
if (start === null) {
start = end;
} else if (start < 0) {
start = end + start;
}
}

Loading…
Cancel
Save