mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
Small cornercase fix to python-info-current-defun.
Returned the bad defun name when point was at the beginning of defun.
This commit is contained in:
parent
6b4328531c
commit
327f0e8429
1 changed files with 1 additions and 1 deletions
|
|
@ -1942,8 +1942,8 @@ not inside a defun."
|
|||
(save-restriction
|
||||
(widen)
|
||||
(save-excursion
|
||||
(forward-comment -1)
|
||||
(goto-char (line-end-position))
|
||||
(forward-comment -1)
|
||||
(while (and (not (equal 0 (current-indentation)))
|
||||
(not (python-beginning-of-defun-function 1 t)))
|
||||
(when (or (not min-indent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue