mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(indent-line-to): Fix off-by-one bug when deciding
whether to delete the existing spaces.
This commit is contained in:
parent
3ec18f3f45
commit
cd6d305e53
@ -84,7 +84,7 @@ only if necessary. It leaves point at end of indentation."
|
||||
(back-to-indentation)
|
||||
(let ((cur-col (current-column)))
|
||||
(cond ((< cur-col column)
|
||||
(if (> (- column (* (/ cur-col tab-width) tab-width)) tab-width)
|
||||
(if (>= (- column (* (/ cur-col tab-width) tab-width)) tab-width)
|
||||
(delete-region (point)
|
||||
(progn (skip-chars-backward " ") (point))))
|
||||
(indent-to column))
|
||||
|
Loading…
Reference in New Issue
Block a user