Fix wrong column being used and resulting bugs

This commit is contained in:
Jan Felix Langenbach 2021-05-13 09:49:30 +02:00
parent 6aa29e82ae
commit 3c41823824

View file

@ -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))