From: Mark Wooding Date: Thu, 20 Jul 2017 00:18:46 +0000 (+0100) Subject: el/dot-emacs.el: Don't try to select a track after the last line. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/4466dfacdfb0c6b4e113aebbb63ef4bddfab722b?ds=inline el/dot-emacs.el: Don't try to select a track after the last line. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 5f27085..6b2525f 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -3857,7 +3857,8 @@ (defun mdw-mpc-hack-lines (arg interactivep func) (decf n))))))) (defun mdw-mpc-select-one () - (unless (get-char-property (point) 'mpc-select) + (when (and (get-char-property (point) 'mpc-file) + (not (get-char-property (point) 'mpc-select))) (mpc-select-toggle))) (defun mdw-mpc-unselect-one ()