From 63b98362a903e7a25363753cf1349d30fc13a791 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sat, 30 May 1998 14:29:25 +0000 Subject: [PATCH] (viper-skip-syntax): Bug fix for eob/bob cases. --- lisp/emulation/viper-util.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index 6cad4511d28..111edd10b6a 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el @@ -1295,7 +1295,10 @@ This option is appropriate if you like Emacs-style words." (t nil))) (if (memq ?^ syntax) (setq negated-syntax t)) - (while (and (not (= local 0)) (not (eobp))) + (while (and (not (= local 0)) + (cond ((eq direction 'forward) + (not (eobp))) + (t (not (bobp))))) (setq char-looked-at (viper-char-at-pos direction) ;; if outside the range, set to nil syntax-of-char-looked-at (if char-looked-at -- 2.39.2