mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Autocomplete documentation fix with fuzzy autocomplete disabled
This commit is contained in:
parent
8f7f7cba21
commit
a69dd47cea
1 changed files with 33 additions and 14 deletions
|
@ -1966,6 +1966,7 @@ namespace IDE.ui
|
||||||
}
|
}
|
||||||
|
|
||||||
StringView matches = default;
|
StringView matches = default;
|
||||||
|
StringView documentation = default;
|
||||||
int matchesPos = entryDisplay.IndexOf('\x02');
|
int matchesPos = entryDisplay.IndexOf('\x02');
|
||||||
matchIndices.Clear();
|
matchIndices.Clear();
|
||||||
if (matchesPos != -1)
|
if (matchesPos != -1)
|
||||||
|
@ -1985,14 +1986,22 @@ namespace IDE.ui
|
||||||
// TODO(FUZZY): we could save start and length instead of single chars
|
// TODO(FUZZY): we could save start and length instead of single chars
|
||||||
matchIndices.Add((uint8)result.Value);
|
matchIndices.Add((uint8)result.Value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
StringView documentation = default;
|
int docPos = matches.IndexOf('\x03');
|
||||||
int docPos = matches.IndexOf('\x03');
|
if (docPos != -1)
|
||||||
if (docPos != -1)
|
{
|
||||||
|
documentation = StringView(matches, docPos + 1);
|
||||||
|
matches = StringView(matches, 0, docPos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
documentation = StringView(matches, docPos + 1);
|
int docPos = entryDisplay.IndexOf('\x03');
|
||||||
matches = StringView(matches, 0, docPos);
|
if (docPos != -1)
|
||||||
|
{
|
||||||
|
documentation = StringView(entryDisplay, docPos + 1);
|
||||||
|
entryDisplay = StringView(entryDisplay, 0, docPos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StringView entryInsert = default;
|
StringView entryInsert = default;
|
||||||
|
@ -2131,6 +2140,7 @@ namespace IDE.ui
|
||||||
}
|
}
|
||||||
|
|
||||||
StringView matches = default;
|
StringView matches = default;
|
||||||
|
StringView documentation = default;
|
||||||
int matchesPos = entryDisplay.IndexOf('\x02');
|
int matchesPos = entryDisplay.IndexOf('\x02');
|
||||||
matchIndices.Clear();
|
matchIndices.Clear();
|
||||||
if (matchesPos != -1)
|
if (matchesPos != -1)
|
||||||
|
@ -2150,15 +2160,24 @@ namespace IDE.ui
|
||||||
// TODO(FUZZY): we could save start and length instead of single chars
|
// TODO(FUZZY): we could save start and length instead of single chars
|
||||||
matchIndices.Add((uint8)result.Value);
|
matchIndices.Add((uint8)result.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int docPos = matches.IndexOf('\x03');
|
||||||
|
if (docPos != -1)
|
||||||
|
{
|
||||||
|
documentation = StringView(matches, docPos + 1);
|
||||||
|
matches = StringView(matches, 0, docPos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
int docPos = entryDisplay.IndexOf('\x03');
|
||||||
|
if (docPos != -1)
|
||||||
|
{
|
||||||
|
documentation = StringView(entryDisplay, docPos + 1);
|
||||||
|
entryDisplay = StringView(entryDisplay, 0, docPos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StringView documentation = default;
|
|
||||||
int docPos = matches.IndexOf('\x03');
|
|
||||||
if (docPos != -1)
|
|
||||||
{
|
|
||||||
documentation = StringView(matches, docPos + 1);
|
|
||||||
matches = StringView(matches, 0, docPos);
|
|
||||||
}
|
|
||||||
|
|
||||||
StringView entryInsert = default;
|
StringView entryInsert = default;
|
||||||
tabPos = entryDisplay.IndexOf('\t');
|
tabPos = entryDisplay.IndexOf('\t');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue