mirror of
https://github.com/m00natic/vlfi.git
synced 2025-09-19 19:52:08 +01:00
Execute vlf-after-batch-functions hook even on user quit command before
end of search. Update buffer name after unsuccessful goto line.
This commit is contained in:
@@ -120,8 +120,8 @@ BATCH-STEP is amount of overlap between successive chunks."
|
||||
count to-find)
|
||||
(vlf-goto-match match-chunk-start match-chunk-end
|
||||
match-start-pos match-end-pos
|
||||
count to-find)))))
|
||||
(run-hook-with-args 'vlf-after-batch-functions 'search))
|
||||
count to-find))
|
||||
(run-hook-with-args 'vlf-after-batch-functions 'search)))))
|
||||
|
||||
(defun vlf-goto-match (match-chunk-start match-chunk-end
|
||||
match-pos-start
|
||||
@@ -248,6 +248,7 @@ Search is performed chunk by chunk in `vlf-batch-size' memory."
|
||||
(unless success
|
||||
(vlf-with-undo-disabled
|
||||
(vlf-move-to-chunk-2 start-pos end-pos))
|
||||
(vlf-update-buffer-name)
|
||||
(goto-char pos)
|
||||
(message "Unable to find line"))
|
||||
(run-hook-with-args 'vlf-after-batch-functions 'goto-line))))
|
||||
|
Reference in New Issue
Block a user