runDialog: Trim input before processing
This way, whitespace-only (nonempty) input gets the same treatment of not being added to the history (see previous commit), which seems nice. Part of https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3183. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1442>
This commit is contained in:
parent
cb26a636e8
commit
6ac32f1fc0
@ -178,6 +178,7 @@ class RunDialog extends ModalDialog.ModalDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_run(input, inTerminal) {
|
_run(input, inTerminal) {
|
||||||
|
input = input.trim();
|
||||||
let command = input;
|
let command = input;
|
||||||
|
|
||||||
if (input)
|
if (input)
|
||||||
|
Loading…
Reference in New Issue
Block a user