mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
(py-shift-region-left): When checking for left edged code, watch for
blank lines.
This commit is contained in:
parent
d3876d33d3
commit
71e315b9d9
1 changed files with 2 additions and 1 deletions
|
@ -963,7 +963,8 @@ You cannot outdent the region if any line is already at column zero."
|
||||||
(goto-char start)
|
(goto-char start)
|
||||||
(while (< (point) end)
|
(while (< (point) end)
|
||||||
(back-to-indentation)
|
(back-to-indentation)
|
||||||
(if (zerop (current-column))
|
(if (and (zerop (current-column))
|
||||||
|
(not (looking-at "\\s *$")))
|
||||||
(error "Region is at left edge."))
|
(error "Region is at left edge."))
|
||||||
(forward-line 1)))
|
(forward-line 1)))
|
||||||
(py-shift-region start end (- (prefix-numeric-value
|
(py-shift-region start end (- (prefix-numeric-value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue