aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--migemized_find.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/migemized_find.js b/migemized_find.js
index 22a738e..f1840f0 100644
--- a/migemized_find.js
+++ b/migemized_find.js
@@ -493,6 +493,7 @@ let INFO = xml`
findAgain: function (reverse) {
let backwards = !!(!this.lastDirection ^ !reverse);
let last = this.storage.lastResult;
+ let start, end;
let frames = this.currentFrames;
@@ -515,7 +516,6 @@ let INFO = xml`
this.removeHighlight(this.lastColor);
let str = this.lastSearchExpr;
- let start, end;
let result;
let ret = this.find(str, backwards, this.makeBodyRange(last.frame), start, end);
@@ -612,7 +612,9 @@ let INFO = xml`
},
findAgain: function findAgain (reverse) {
- if (!MF.findAgain(reverse))
+ if (MF.findAgain(reverse))
+ liberator.echomsg('');
+ else
liberator.echoerr('not found: ' + MF.lastSearchText);
},
@@ -624,7 +626,9 @@ let INFO = xml`
}
if (MF.currentSearchText !== command)
MF.findFirst(command, forcedBackward);
- if (!MF.submit())
+ if (MF.submit())
+ liberator.echomsg('');
+ else
liberator.echoerr('not found: ' + MF.currentSearchText);
},