diff options
Diffstat (limited to 'Userland/Libraries/LibCodeComprehension')
-rw-r--r-- | Userland/Libraries/LibCodeComprehension/Shell/ShellComprehensionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCodeComprehension/Shell/ShellComprehensionEngine.cpp b/Userland/Libraries/LibCodeComprehension/Shell/ShellComprehensionEngine.cpp index 94a34201eb..aeac3addcd 100644 --- a/Userland/Libraries/LibCodeComprehension/Shell/ShellComprehensionEngine.cpp +++ b/Userland/Libraries/LibCodeComprehension/Shell/ShellComprehensionEngine.cpp @@ -117,7 +117,7 @@ size_t ShellComprehensionEngine::resolve(ShellComprehensionEngine::DocumentData if (position.line() > 0) { auto first = true; size_t line = 0; - for (auto& line_view : document.text.split_limit('\n', position.line() + 1, true)) { + for (auto& line_view : document.text.split_limit('\n', position.line() + 1, SplitBehavior::KeepEmpty)) { if (line == position.line()) break; if (first) |