diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,12 @@
 
 Version history.
 
+## 0.0.11 Santa Clause edition released 2022-12-06
+
+- Delete trailing tabs even when `--tab=0`
+  [#42](https://github.com/agda/fix-whitespace/issues/42)
+- Tested with GHC 8.0.2 - 9.4.3.
+
 ## 0.0.10 released 2022-08-21
 
 - Symlink problem
diff --git a/FixWhitespace.hs b/FixWhitespace.hs
--- a/FixWhitespace.hs
+++ b/FixWhitespace.hs
@@ -271,7 +271,7 @@
     reverse . dropWhile1 Text.null . reverse
 
   removeTrailingWhitespace =
-    Text.dropWhileEnd ((`elem` [Space,Format]) . generalCategory)
+    Text.dropWhileEnd $ \ c -> generalCategory c `elem` [Space,Format] || c == '\t'
 
   convertTabs = if tabSize <= 0 then id else
     Text.pack . reverse . fst . foldl convertOne ([], 0) . Text.unpack
diff --git a/fix-whitespace.cabal b/fix-whitespace.cabal
--- a/fix-whitespace.cabal
+++ b/fix-whitespace.cabal
@@ -1,5 +1,5 @@
 name:            fix-whitespace
-version:         0.0.10
+version:         0.0.11
 cabal-version:   1.24
 build-type:      Simple
 description:     Removes trailing whitespace, lines containing only whitespace, expands tabs,
@@ -13,8 +13,8 @@
 Category:        Text
 Synopsis:        Fixes whitespace issues.
 tested-with:
-  GHC == 9.4.1
-  GHC == 9.2.4
+  GHC == 9.4.3
+  GHC == 9.2.5
   GHC == 9.0.2
   GHC == 8.10.7
   GHC == 8.8.4
@@ -35,6 +35,8 @@
   stack-8.10.7.yaml
   stack-9.0.2.yaml
   stack-9.2.4.yaml
+  stack-9.2.5.yaml
+  stack-9.4.3.yaml
 
 source-repository head
   type: git
diff --git a/stack-9.0.2.yaml b/stack-9.0.2.yaml
--- a/stack-9.0.2.yaml
+++ b/stack-9.0.2.yaml
@@ -1,6 +1,3 @@
-resolver: lts-19.20
+resolver: lts-19.33
 compiler: ghc-9.0.2
 compiler-check: match-exact
-
-extra-deps:
-  - filepattern-0.1.3
diff --git a/stack-9.2.4.yaml b/stack-9.2.4.yaml
--- a/stack-9.2.4.yaml
+++ b/stack-9.2.4.yaml
@@ -1,6 +1,3 @@
-resolver: nightly-2022-08-19
+resolver: nightly-2022-11-12
 compiler: ghc-9.2.4
 compiler-check: match-exact
-
-extra-deps:
-  - filepattern-0.1.3
diff --git a/stack-9.2.5.yaml b/stack-9.2.5.yaml
new file mode 100644
--- /dev/null
+++ b/stack-9.2.5.yaml
@@ -0,0 +1,3 @@
+resolver: lts-20.3
+compiler: ghc-9.2.5
+compiler-check: match-exact
diff --git a/stack-9.4.3.yaml b/stack-9.4.3.yaml
new file mode 100644
--- /dev/null
+++ b/stack-9.4.3.yaml
@@ -0,0 +1,3 @@
+resolver: nightly-2022-12-05
+compiler: ghc-9.4.3
+compiler-check: match-exact
