diff --git a/yasnippet-tests.el b/yasnippet-tests.el index d090c51..4b3a440 100644 --- a/yasnippet-tests.el +++ b/yasnippet-tests.el @@ -351,7 +351,8 @@ TODO: correct this bug!" (yas--foobarbaz t) (yas--barbaz t)) (yas-should-expand '(("foo-barbaz" . "foo-barOKbazOK"))) (setq yas-key-syntaxes '(yas-longest-key-from-whitespace)) - (yas-should-expand '(("foo-barbaz" . "OKfoo-barbazOK")))))))) + (yas-should-expand '(("foo-barbaz" . "OKfoo-barbazOK") + ("foo " . "foo ")))))))) ;;; Loading diff --git a/yasnippet.el b/yasnippet.el index 900d326..ea5fe33 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -2749,7 +2749,7 @@ marks it as something else (typically comment ender)." (if (= (point) start-point) (yas-try-key-from-whitespace start-point) (forward-char)) - (unless (= original (1+ (point))) + (unless (<= start-point (1+ (point))) 'again))