Kaydet (Commit) ddc46967 authored tarafından Barry Warsaw's avatar Barry Warsaw

(py-beginning-of-def-or-class): Only move to match-beginning if the

regex match actually succeeded!
üst 4ef3ea0c
......@@ -2164,8 +2164,8 @@ To mark the current `def', see `\\[py-mark-def-or-class]'."
(zerop (current-column))
(looking-at start-re))
(end-of-line))
(re-search-backward start-re nil 'move count)
(goto-char (match-beginning 0))))
(if (re-search-backward start-re nil 'move count)
(goto-char (match-beginning 0)))))
;; Backwards compatibility
(defalias 'beginning-of-python-def-or-class 'py-beginning-of-def-or-class)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment