From 776663cb451bfd2b641cf18b24744daaf315a198 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 May 2020 05:51:56 -0400 Subject: [PATCH] Fix #3217: backspace noops if tab-width=1 --- modules/config/default/autoload/text.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/config/default/autoload/text.el b/modules/config/default/autoload/text.el index 6d28f224b..d0fb85365 100644 --- a/modules/config/default/autoload/text.el +++ b/modules/config/default/autoload/text.el @@ -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)))