From 6dc223ed6a811ef68b311d3892cd0df21fb861d9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 28 Aug 2014 23:19:18 +0100 Subject: [PATCH] Fix spaces_to_tabs when tabs follow spaces --- src/normal.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/normal.cc b/src/normal.cc index 34428a1a..6c7aab4c 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1159,6 +1159,8 @@ void spaces_to_tabs(Context& context, int ts) } if ((col % tabstop) == 0) spaces.push_back({spaces_beg.coord(), (spaces_end-1).coord()}); + else if (*spaces_end == '\t') + spaces.push_back({spaces_beg.coord(), spaces_end.coord()}); it = spaces_end; } else