Commit 89786024 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[KRunner] Keep input when auto completing

Avoids the user typing a capital "K" but then having it overwritten by
a lowercase "kwrite" thinking their keyboard is borked.
parent eda8c5be
......@@ -155,7 +155,7 @@ ColumnLayout {
var oldText = text
var suggestedText = runnerManager.getHistorySuggestion(text);
if (suggestedText.length > 0) {
text = suggestedText
text = text + suggestedText.substr(oldText.length)
select(text.length, oldText.length)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment