emacs: push mark of isearch start when isearch successful
This commit is contained in:
parent
766b07e330
commit
5c219162cc
1 changed files with 2 additions and 0 deletions
|
|
@ -113,6 +113,8 @@ oop.inherits(IncrementalSearch, Search);
|
||||||
if (reset) {
|
if (reset) {
|
||||||
e.moveCursorToPosition(this.$startPos);
|
e.moveCursorToPosition(this.$startPos);
|
||||||
this.$currentPos = this.$startPos;
|
this.$currentPos = this.$startPos;
|
||||||
|
} else {
|
||||||
|
e.pushEmacsMark && e.pushEmacsMark(this.$startPos, false);
|
||||||
}
|
}
|
||||||
this.highlight(null);
|
this.highlight(null);
|
||||||
return Range.fromPoints(this.$currentPos, this.$currentPos);
|
return Range.fromPoints(this.$currentPos, this.$currentPos);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue