aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2002-03-18 04:24:57 +0000
committerRichard M. Stallman <[email protected]>2002-03-18 04:24:57 +0000
commit43711c229f0979acba24729b3f29bd575eab0a0a (patch)
tree84410b335bc572f225da715459f918facd991c11 /lisp
parent1665be4714b025899471f37faa45d2b644a547ff (diff)
(dabbrev--goto-start-of-abbrev): Put a limit on field-beginning search.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/dabbrev.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index 92191a926c..55b080ee0b 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))))