mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:35:06 +00:00
LibLine: Fix suggestion spacing regression
This patch fixes an issue where the line editor would put no spacing between suggestions (only when there are two suggestions). To reproduce, try on a build with no ports (starting with `pro`): ``` > pro<tab> profilepro ```
This commit is contained in:
parent
ae3353bdbc
commit
b64bb7a3e1
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ String Editor::get_line(const String& prompt)
|
|||
size_t start_index = 0;
|
||||
|
||||
for (auto& suggestion : m_suggestions) {
|
||||
if (start_index++ <= m_last_displayed_suggestion_index)
|
||||
if (start_index++ < m_last_displayed_suggestion_index)
|
||||
continue;
|
||||
longest_suggestion_length = max(longest_suggestion_length, suggestion.text.length());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue