Improve deindent behaviour with mixed indent
This commit is contained in:
parent
f7ab129e53
commit
0e1e0fc57b
|
@ -1207,7 +1207,7 @@ void deindent(Context& context, NormalParams params)
|
|||
sels.emplace_back(line, BufferCoord{line, column-1});
|
||||
break;
|
||||
}
|
||||
if (width == indent_width)
|
||||
if (width >= indent_width)
|
||||
{
|
||||
sels.emplace_back(line, BufferCoord{line, column});
|
||||
break;
|
||||
|
|
1
test/regression/0-deindent-on-mixed-indent-line/cmd
Normal file
1
test/regression/0-deindent-on-mixed-indent-line/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
<lt>
|
1
test/regression/0-deindent-on-mixed-indent-line/in
Normal file
1
test/regression/0-deindent-on-mixed-indent-line/in
Normal file
|
@ -0,0 +1 @@
|
|||
fo%(o)
|
1
test/regression/0-deindent-on-mixed-indent-line/out
Normal file
1
test/regression/0-deindent-on-mixed-indent-line/out
Normal file
|
@ -0,0 +1 @@
|
|||
foo
|
Loading…
Reference in New Issue
Block a user