1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00
serenity/Userland/Libraries/LibLine
Ali Mohammad Pur db34ee357d LibLine: Avoid returning reference to cached suggestion
This caused a dangling reference down the line, which lead to funny
things like the following:
    > cd Bui[tab]
    > cd Bui^@^@

By returning a direct reference to the suggestion in question, we can be
sure that the referenced object is alive until the next suggestion
cycle.
2023-12-22 10:59:56 +01:00
..
CMakeLists.txt LibLine: Use grapheme clusters for cursor management 2023-12-16 22:11:43 +01:00
Editor.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Editor.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
InternalFunctions.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
KeyCallbackMachine.cpp LibLine: Correct spelling mistake in variable name 2021-07-21 14:15:24 +02:00
KeyCallbackMachine.h AK: Rename GenericTraits to DefaultTraits 2023-11-09 10:05:51 -05:00
Span.h LibLine: Ignore empty spans when stylizing 2022-07-17 00:51:31 +00:00
StringMetrics.h LibLine: Use grapheme clusters for cursor management 2023-12-16 22:11:43 +01:00
Style.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SuggestionDisplay.h Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
SuggestionManager.cpp LibLine: Avoid returning reference to cached suggestion 2023-12-22 10:59:56 +01:00
SuggestionManager.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
VT.h Everywhere: Use nested namespace qualifiers 2023-07-12 10:05:42 +03:30
XtermSuggestionDisplay.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30