Replace kill-this-buffer with kill-current-buffer
As per the documentation for kill-this-buffer, it should only be invoked from the menu and behaves unpredictably when invoked programmatically.
This commit is contained in:
parent
0c743afcfd
commit
aa64cf9426
14 changed files with 22 additions and 22 deletions
|
@ -6,7 +6,7 @@
|
|||
(unless noninteractive
|
||||
(pdf-tools-install))
|
||||
|
||||
(map! :map pdf-view-mode-map :gn "q" #'kill-this-buffer)
|
||||
(map! :map pdf-view-mode-map :gn "q" #'kill-current-buffer)
|
||||
|
||||
(defun +pdf|cleanup-windows ()
|
||||
"Kill left-over annotation buffers when the document is killed."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue