Fix #3217: backspace noops if tab-width=1

This commit is contained in:
Henrik Lissner 2020-05-28 05:51:56 -04:00
parent 024503b2f4
commit 776663cb45
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -73,6 +73,7 @@ possible, or just one char if that's not possible."
;; Delete up to the nearest tab column IF only whitespace between
;; point and bol.
((and (not indent-tabs-mode)
(> tab-width 1)
(not (bolp))
(not (doom-point-in-string-p))
(save-excursion (>= (- (skip-chars-backward " \t")) tab-width)))