[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e2cef67 1/5: packages/vlf: [tyny fix] Fix cursor position
From: |
Andrey Kotlarski |
Subject: |
[elpa] master e2cef67 1/5: packages/vlf: [tyny fix] Fix cursor position after search |
Date: |
Fri, 29 Dec 2017 17:45:39 -0500 (EST) |
branch: master
commit e2cef67bf05f35b033c19820adb17d0ca86255c0
Author: Nil Geisweiller <address@hidden>
Commit: Andrey Kotlarski <address@hidden>
packages/vlf: [tyny fix] Fix cursor position after search
After searching forward (resp. backward) the cursor should be at the
end (resp. the beginning) of the match. That way one can jump to the
next match by running again the command.
---
packages/vlf/vlf-search.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/vlf/vlf-search.el b/packages/vlf/vlf-search.el
index f797378..1793ade 100644
--- a/packages/vlf/vlf-search.el
+++ b/packages/vlf/vlf-search.el
@@ -139,10 +139,10 @@ Return t if search has been at least partially
successful."
(let ((result
(if backward
(vlf-goto-match match-chunk-start match-chunk-end
- match-end-pos match-start-pos
+ match-start-pos match-end-pos
count to-find time highlight)
(vlf-goto-match match-chunk-start match-chunk-end
- match-start-pos match-end-pos
+ match-end-pos match-start-pos
count to-find time highlight))))
(run-hook-with-args 'vlf-after-batch-functions 'search)
result)))))