[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vlf eaa3629 299/310: Fix cursor position after search
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vlf eaa3629 299/310: Fix cursor position after search |
Date: |
Sat, 28 Nov 2020 00:33:35 -0500 (EST) |
branch: externals/vlf
commit eaa362922734a6fc0b1228a040be267faec07d3c
Author: Nil Geisweiller <ngeiswei@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>
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.
---
vlf-search.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlf-search.el b/vlf-search.el
index 6bb724f..0268ee6 100644
--- a/vlf-search.el
+++ b/vlf-search.el
@@ -140,10 +140,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)))))
- [elpa] externals/vlf 023ee70 267/310: Declare hexl functions to please byte compiler., (continued)
- [elpa] externals/vlf 023ee70 267/310: Declare hexl functions to please byte compiler., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf c3a308c 271/310: Optimize save performance over the temp file if such is used. Add, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ce13609 278/310: Fix vlf-ediff at the borders of hexl buffers., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf f43ada1 282/310: Fix byte compilation warnings., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 305d802 280/310: Use shared profiling info for encode, write and hexl operations., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 5dd9e2c 281/310: Adjust address parts of hexlified buffer according to vlf-start-pos., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 68d6c1b 289/310: vlf-occur changes:, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 0fa6248 288/310: Optimize unconditional chunk loading and prefer it in more cases of, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf bd5f9ca 286/310: Back to using per buffer profiling for encode speed., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 726f50b 294/310: Fix byte-compilation warnings on install., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf eaa3629 299/310: Fix cursor position after search,
Stefan Monnier <=
- [elpa] externals/vlf ac1aa16 296/310: Standard naming for chunk update hooks., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf cc02f25 306/310: Fix typos, Stefan Monnier, 2020/11/28