Skip to content

Commit 5e72c34

Browse files
authored
Use read-shell-command instead of read-from-minibuffer (#60)
…when prompting for pytest command when prompting for pytest command. The primary advantage of this is that tab completion completes from files in the CWD, which is much more useful for pytest (where test files are valid arguments).
1 parent 08df213 commit 5e72c34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-pytest.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ With a prefix ARG, allow editing."
356356
(setq edit (not edit)))
357357
(when edit
358358
(setq command
359-
(read-from-minibuffer
359+
(read-shell-command
360360
"Command: "
361-
command nil nil 'python-pytest--history)))
361+
command 'python-pytest--history)))
362362
(add-to-history 'python-pytest--history command)
363363
(setq python-pytest--history (-uniq python-pytest--history))
364364
(puthash (python-pytest--project-root) command

0 commit comments

Comments
 (0)