summaryrefslogtreecommitdiff
path: root/lisp/dabbrev.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-03-18 04:24:57 +0000
committerRichard M. Stallman <rms@gnu.org>2002-03-18 04:24:57 +0000
commit43711c229f0979acba24729b3f29bd575eab0a0a (patch)
tree84410b335bc572f225da715459f918facd991c11 /lisp/dabbrev.el
parent1665be4714b025899471f37faa45d2b644a547ff (diff)
downloademacs-43711c229f0979acba24729b3f29bd575eab0a0a.tar.gz
(dabbrev--goto-start-of-abbrev): Put a limit on field-beginning search.
Diffstat (limited to 'lisp/dabbrev.el')
-rw-r--r--lisp/dabbrev.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index 92191a926c3..55b080ee0b1 100644
--- a/lisp/dabbrev.el
+++ b/lisp/dabbrev.el
@@ -599,7 +599,9 @@ See also `dabbrev-abbrev-char-regexp' and \\[dabbrev-completion]."
(progn
(forward-char -1)
(while (and (looking-at dabbrev--abbrev-char-regexp)
- (not (= (point) (field-beginning (point)))))
+ (not (bobp))
+ (not (= (point) (field-beginning (point) nil
+ (1- (point))))))
(forward-char -1))
(or (looking-at dabbrev--abbrev-char-regexp)
(forward-char 1))))