]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix #63
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 3 Sep 2012 22:42:57 +0000 (02:42 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 3 Sep 2012 22:42:57 +0000 (02:42 +0400)
js2-mode.el

index 7a8c744c99dedb4841199045ff67cbe479893863..ba112e5444ed490d4260e77ce39ab03cba92a63a 100644 (file)
@@ -11448,7 +11448,8 @@ With ARG, do it that many times.  Negative arg -N means
 move backward across N balanced expressions."
   (interactive "p")
   (setq arg (or arg 1))
-  (when js2-mode-buffer-dirty-p
+  (save-restriction
+    (widen) ;; `blink-matching-open' calls `narrow-to-region'
     (js2-reparse))
   (let ((scan-msg "Containing expression ends prematurely")
         node (start (point)) pos lp rp child)