Utop correctly restarts when (not utop-edit-command)

## Problem

If `utop-edit-command` is nil, then `utop-query-arguments` returns nil.
This breaks `utop-restart` which relies upon it returning the right arguments.

## Solution

`utop-query-arguments` always returns `(utop-arguments)` whether it sets the utop-command or not.
This commit is contained in:
Dan Sănduleac 2021-03-18 11:31:49 +00:00 committed by GitHub
parent a5ff52bbf6
commit ba44fc9cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1074,8 +1074,8 @@ defaults to 0."
"Return the arguments of the utop command to run."
;; Read the command to run
(when utop-edit-command
(setq utop-command (read-shell-command "utop command line: " utop-command))
(utop-arguments)))
(setq utop-command (read-shell-command "utop command line: " utop-command)))
(utop-arguments))
(defun utop-start (arguments)
"Start utop given ARGUMENTS."