mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-18 03:55:31 +00:00
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.
This commit is contained in:
parent
a8ba8363b2
commit
eaa3629227
@ -140,10 +140,10 @@ Return t if search has been at least partially successful."
|
|||||||
(let ((result
|
(let ((result
|
||||||
(if backward
|
(if backward
|
||||||
(vlf-goto-match match-chunk-start match-chunk-end
|
(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)
|
count to-find time highlight)
|
||||||
(vlf-goto-match match-chunk-start match-chunk-end
|
(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))))
|
count to-find time highlight))))
|
||||||
(run-hook-with-args 'vlf-after-batch-functions 'search)
|
(run-hook-with-args 'vlf-after-batch-functions 'search)
|
||||||
result)))))
|
result)))))
|
||||||
|
Loading…
Reference in New Issue
Block a user