mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #3217: backspace noops if tab-width=1
This commit is contained in:
@ -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
|
;; Delete up to the nearest tab column IF only whitespace between
|
||||||
;; point and bol.
|
;; point and bol.
|
||||||
((and (not indent-tabs-mode)
|
((and (not indent-tabs-mode)
|
||||||
|
(> tab-width 1)
|
||||||
(not (bolp))
|
(not (bolp))
|
||||||
(not (doom-point-in-string-p))
|
(not (doom-point-in-string-p))
|
||||||
(save-excursion (>= (- (skip-chars-backward " \t")) tab-width)))
|
(save-excursion (>= (- (skip-chars-backward " \t")) tab-width)))
|
||||||
|
Reference in New Issue
Block a user