From eaed61fb39648cad8771af864f88b077a3344125 Mon Sep 17 00:00:00 2001 From: duianto Date: Fri, 17 May 2019 21:39:17 +0200 Subject: [PATCH] Fix canceling spacemacs/ace-buffer-links problem: Canceling "spacemacs/ace-buffer-links" with "C-g" showed the error message: "goto-char: Wrong type argument: number-or-marker-p, t" solution: Only go to and press the link if it's a position (number). --- CHANGELOG.develop | 1 + layers/+spacemacs/spacemacs-navigation/funcs.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index 2e9995a2f..3f04e99dc 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -1033,6 +1033,7 @@ Other: is =nil= (thanks to duianto) - Used return value from advised function in =spacemacs//yank-indent-region= (thanks to Brandon T. Willard) + - Fixed canceling =spacemacs/ace-buffer-links= (thanks to duianto) *** Layer changes and fixes **** Agda - Fixes diff --git a/layers/+spacemacs/spacemacs-navigation/funcs.el b/layers/+spacemacs/spacemacs-navigation/funcs.el index 71a37ce30..b54a30acf 100644 --- a/layers/+spacemacs/spacemacs-navigation/funcs.el +++ b/layers/+spacemacs/spacemacs-navigation/funcs.el @@ -277,7 +277,7 @@ If the universal prefix argument is used then kill also the window." (avy--process (spacemacs//collect-spacemacs-buffer-links) #'avy--overlay-pre)))) - (when res + (when (numberp res) (goto-char (1+ res)) (widget-button-press (point)))))