awful.widget.prompt: Properly take into account `with_shell` arg (#3659)

This commit is contained in:
Matthias Paulmier 2022-07-12 17:53:34 +02:00 committed by GitHub
parent 9ca7bb487a
commit b7bac1dc76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ function widgetprompt.new(args)
promptbox.exe_callback = args.exe_callback or function (...)
promptbox:spawn_and_handle_error(...)
end
promptbox.with_shell = args.with_shell or false
promptbox.completion_callback = args.completion_callback or completion.shell
promptbox.history_path = args.history_path or
gfs.get_cache_dir() .. 'history'