Improve deindent behaviour with mixed indent

This commit is contained in:
Maxime Coste 2018-12-13 17:35:16 +11:00
parent f7ab129e53
commit 0e1e0fc57b
4 changed files with 4 additions and 1 deletions

View File

@ -1207,7 +1207,7 @@ void deindent(Context& context, NormalParams params)
sels.emplace_back(line, BufferCoord{line, column-1}); sels.emplace_back(line, BufferCoord{line, column-1});
break; break;
} }
if (width == indent_width) if (width >= indent_width)
{ {
sels.emplace_back(line, BufferCoord{line, column}); sels.emplace_back(line, BufferCoord{line, column});
break; break;

View File

@ -0,0 +1 @@
<lt>

View File

@ -0,0 +1 @@
fo%(o)

View File

@ -0,0 +1 @@
foo