(view-exit): Delete view-overlay only if it exists.
Showing with 1 addition and 1 deletion
|...||...||@@ -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."|
|(setq view-mode nil)|
|(and view-overlay (delete-overlay view-overlay))|
|(setq buffer-read-only view-old-buffer-read-only)|