# HG changeset patch # User Karl Heuer # Date 896538565 0 # Node ID 7c92be9aea04d020efb318da743dffe10980e7ab # Parent 3649674ebf29694956e6ad2e6d166bd5946778a5 (viper-skip-syntax): Bug fix for eob/bob cases. diff -r 3649674ebf29 -r 7c92be9aea04 lisp/emulation/viper-util.el --- a/lisp/emulation/viper-util.el Sat May 30 14:28:56 1998 +0000 +++ b/lisp/emulation/viper-util.el Sat May 30 14:29:25 1998 +0000 @@ -1295,7 +1295,10 @@ (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