From 0e1e0fc57b9e876f3a450ffaaa5669edfba2f801 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 13 Dec 2018 17:35:16 +1100 Subject: Improve deindent behaviour with mixed indent --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 49cc90f6..0a4e4c86 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -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; -- cgit v1.2.3