diff --git a/config.org b/config.org index 4555669..b677b12 100644 --- a/config.org +++ b/config.org @@ -2474,8 +2474,9 @@ If prefix ARG is given, delete the window instead of selecting it." n) "Jump to popup window 0, or popup 10 if 0 is not assigned. If prefix ARG is given, delete the window instead of selecting it." (interactive "P") - (let ((n (if (winum-get-window-by-index '(popup . 0)) - '(popup . 0) '(popup . 10)))) + (let ((n (or (and (winum-get-window-by-index '(popup . 0)) '(popup . 0)) + (and (winum-get-window-by-index '(popup . 10)) '(popup . 10)) + (user-error "No window with index (popup . 0) or (popup . 10)")))) (if arg (winum-delete-window-by-index n) (winum-select-window-by-index n)))) diff --git a/pkgs/winum b/pkgs/winum index efa0aed..6094bb0 160000 --- a/pkgs/winum +++ b/pkgs/winum @@ -1 +1 @@ -Subproject commit efa0aedb7c4c03fb287210cd248f5fad8d4442c9 +Subproject commit 6094bb05f3a78687529b55674dbdd697e51e1c25