From 86637e59ad027c7c3d8d7d560ddec24dd7f04cb5 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Thu, 6 Feb 2025 22:47:26 -0800 Subject: [PATCH] fix: char error --- sideline-load-cost.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sideline-load-cost.el b/sideline-load-cost.el index 4a41ea3..cff637a 100644 --- a/sideline-load-cost.el +++ b/sideline-load-cost.el @@ -129,8 +129,8 @@ Optional argument EXT is use to drop-in replace the current extension." (when (search-forward op bol t) (forward-word 1) (when-let* (((<= (point) bol)) - (thing (or (thing-at-point 'string) - (thing-at-point 'symbol))) + (thing (or (ignore-errors (thing-at-point 'string)) + (ignore-errors (thing-at-point 'symbol)))) (thing (if (stringp thing) (sideline--s-replace "\"" "" thing) thing))