mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
(view-exit): Delete view-overlay only if it exists.
This commit is contained in:
parent
14f67fa6a5
commit
641889d6e9
@ -264,7 +264,7 @@ If you viewed an existing buffer, that buffer returns to its previous mode.
|
||||
If you viewed a file that was not present in Emacs, its buffer is killed."
|
||||
(interactive)
|
||||
(setq view-mode nil)
|
||||
(delete-overlay view-overlay)
|
||||
(and view-overlay (delete-overlay view-overlay))
|
||||
(force-mode-line-update)
|
||||
(cond (view-mode-auto-exit
|
||||
(setq buffer-read-only view-old-buffer-read-only)
|
||||
|
Loading…
Reference in New Issue
Block a user