mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(view-exit): Delete view-overlay only if it exists.
This commit is contained in:
parent
14f67fa6a5
commit
641889d6e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue