summaryrefslogtreecommitdiff
path: root/src/string_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-10-24 09:04:14 +1100
committerMaxime Coste <mawww@kakoune.org>2021-10-24 09:04:14 +1100
commit5c1e10decbf5551a2e999972001a36fe4212cbce (patch)
treeea60e58a7cdcdb79503582cbf8e8f7eb768d6e58 /src/string_utils.cc
parent60165bacf93a6625571c38cc8ab7ea182b5b1dec (diff)
parentc57a86ce6264a4b141dfb462964e4dad3c1b154c (diff)
Merge remote-tracking branch 'lenormf/fix-4340'
Diffstat (limited to 'src/string_utils.cc')
-rw-r--r--src/string_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_utils.cc b/src/string_utils.cc
index 212cab2e..459bea0b 100644
--- a/src/string_utils.cc
+++ b/src/string_utils.cc
@@ -21,7 +21,7 @@ String trim_indent(StringView str)
utf8::iterator it{str.begin(), str};
while (it != str.end() and is_horizontal_blank(*it))
- it++;
+ ++it;
const StringView indent{str.begin(), it.base()};
return accumulate(str | split_after<StringView>('\n') | transform([&](auto&& line) {