From 2af1297e2cc7895b37df76c5b904293ad767b4aa Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 7 Nov 2024 21:59:04 +0100 Subject: emacs: Check for nil --- .config/emacs/editing.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config') diff --git a/.config/emacs/editing.el b/.config/emacs/editing.el index e400588..9ff270d 100644 --- a/.config/emacs/editing.el +++ b/.config/emacs/editing.el @@ -39,7 +39,7 @@ just as they are with `mark-word.'" (if (eq last-command this-command) (mark-word arg allow-extend) (let ((bounds (bounds-of-thing-at-point 'word)) - (numeric-arg allow-extend)) + (numeric-arg (or allow-extend 0))) (if bounds (goto-char (if (< numeric-arg 0) (cdr bounds) -- cgit v1.2.3