Fix wrong column being used and resulting bugs
This commit is contained in:
parent
6aa29e82ae
commit
3c41823824
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ possible, or just one char if that's not possible."
|
|||
(> tab-width 1)
|
||||
(not (bolp))
|
||||
(not (doom-point-in-string-p))
|
||||
(save-excursion (>= (- (skip-chars-backward " \t"))
|
||||
(setq current-column (current-column)))))
|
||||
(>= (abs (save-excursion (skip-chars-backward " \t")))
|
||||
(setq current-column (current-column))))
|
||||
(let ((movement (% current-column tab-width)))
|
||||
(when (= movement 0)
|
||||
(setq movement tab-width))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue