]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous commit to prevent infloop
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 6 Apr 2015 04:22:19 +0000 (01:22 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 6 Apr 2015 04:22:19 +0000 (01:22 -0300)
lisp/progmodes/python.el

index f402ad83ccaeb83268a1e1311c505408c14ae98b..50b9d1b0eeee0a2beded72a9b61a08f18c871c66 100644 (file)
@@ -4492,6 +4492,7 @@ point's current `syntax-ppss'."
                          (python-nav-backward-sexp)
                          (setq backward-sexp-point (point))
                          (and (= indentation (current-indentation))
+                              (not (bobp)) ; Prevent infloop.
                               (looking-at-p
                                (concat "[uU]?[rR]?"
                                        (python-rx string-delimiter)))))