console.lua: expand the first completion on Enter

If you run a command without manually selecting a completion, select the
first one. e.g. set vo gn runs set vo gpu-next.
This commit is contained in:
Guido Cella
2024-11-23 09:14:18 +01:00
committed by Kacper Michajłow
parent 57a6f12ed3
commit 2f271a92de
2 changed files with 8 additions and 2 deletions

View File

@@ -15,7 +15,8 @@ ESC and Ctrl+[
Hide the console.
ENTER, Ctrl+j and Ctrl+m
Run the typed command.
Expand the first completion suggestion if present and if none was selected,
and run the typed command.
Shift+ENTER
Type a literal newline character.