1
0
mirror of https://github.com/m00natic/vlfi.git synced 2025-01-18 12:05:31 +00:00

Fix prematurely ending search/occur not to ask for modified buffer

confirmation.
This commit is contained in:
Andrey Kotlarski 2013-12-04 13:59:08 +02:00
parent 931ca52688
commit 2ac3e7d577

2
vlf.el
View File

@ -554,6 +554,7 @@ BATCH-STEP is amount of overlap between successive chunks."
(progress-reporter-update reporter
vlf-end-pos)))))
(progress-reporter-done reporter))
(set-buffer-modified-p nil)
(if backward
(vlf-goto-match match-chunk-start match-chunk-end
match-end-pos match-start-pos
@ -841,6 +842,7 @@ Prematurely ending indexing will still show what's found so far."
last-line-pos (line-beginning-position))
(progress-reporter-update reporter vlf-end-pos))))
(progress-reporter-done reporter))
(set-buffer-modified-p nil)
(if (zerop total-matches)
(progn (with-current-buffer occur-buffer
(set-buffer-modified-p nil))