mirror of https://github.com/python/cpython.git
(imenu-example--create-python-index-engine): Fix nesting breakage when
a method definition has args that span multiple lines; be sure to go to the beginning of the method definition -- but watch out for the match-data!
This commit is contained in:
parent
664dcd5b5e
commit
93c88cca06
|
@ -891,6 +891,8 @@ of the first definition found."
|
|||
(setq def-name
|
||||
(buffer-substring-no-properties (match-beginning cur-paren)
|
||||
(match-end cur-paren))))
|
||||
(save-match-data
|
||||
(py-beginning-of-def-or-class))
|
||||
(beginning-of-line)
|
||||
(setq cur-indent (current-indentation)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue