mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-18 20:10:47 +00:00
In case original VLF buffer has been killed, try to find existing VLF
buffer for the same file when visiting occur results.
This commit is contained in:
parent
cb47e19128
commit
2dba838015
8
vlf.el
8
vlf.el
@ -696,7 +696,13 @@ EVENT may hold details of the invocation."
|
||||
pos-relative)))
|
||||
(or (buffer-live-p buffer)
|
||||
(let ((occur-buffer (current-buffer)))
|
||||
(setq buffer (vlf file))
|
||||
(or (catch 'found
|
||||
(dolist (buf (buffer-list))
|
||||
(set-buffer buf)
|
||||
(and vlf-mode (equal file buffer-file-name)
|
||||
(setq buffer buf)
|
||||
(throw 'found t))))
|
||||
(setq buffer (vlf file)))
|
||||
(switch-to-buffer occur-buffer)))
|
||||
(pop-to-buffer buffer)
|
||||
(vlf-move-to-chunk chunk-start chunk-end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user