Skip to content

Commit

Permalink
Added a bit of whitespace to partial expression prompt.
Browse files Browse the repository at this point in the history
* Makes the expression following the "|" more readable. We might want to
  do the same for the default metta+> prompt.
  • Loading branch information
stassa committed Dec 11, 2024
1 parent ade6e21 commit c468807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prolog/metta_lang/metta_repl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@
% Read a line from the current input stream.
read_line_to_string(current_input, Line),
% switch prompts after the first line is read
prompt(_,'|'),
format(atom(T),'| ~t',[]),
prompt(_,T),
% Call repl_read_next with the new line concatenated to the accumulated input.
repl_read_next(Accumulated, Line, Expr).

Expand Down

0 comments on commit c468807

Please sign in to comment.