Fix spaces_to_tabs when tabs follow spaces

This commit is contained in:
Maxime Coste 2014-08-28 23:19:18 +01:00
parent 114d33c7f8
commit 6dc223ed6a

View File

@ -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