summaryrefslogtreecommitdiff
path: root/lisp/thingatpt.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/thingatpt.el')
-rw-r--r--lisp/thingatpt.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el
index 1600785c117..57bbdf9d94a 100644
--- a/lisp/thingatpt.el
+++ b/lisp/thingatpt.el
@@ -457,6 +457,7 @@ backwards ARG times if negative."
With prefix argument ARG, do it ARG times if positive, or move
backwards ARG times if negative."
(interactive "p")
+ (or arg (setq arg 1))
(while (< arg 0)
(skip-syntax-backward
(char-to-string (char-syntax (char-before))))