don't confuse Emacs' syntax highlighting
This commit is contained in:
parent
d54bebdcec
commit
31443519e8
1 changed files with 2 additions and 1 deletions
3
bin/rpl
3
bin/rpl
|
@ -46,7 +46,8 @@ class RplRepl
|
|||
if input.strip == 'edit'
|
||||
prefill = @interpreter.stack.pop.to_s
|
||||
elsif input.strip == 'history'
|
||||
@interpreter.run( "{ #{Reline::HISTORY.map { |line| "\"#{line}\"" }.join(' ')} }" )
|
||||
history = Reline::HISTORY.map { |line| "\"#{line}\"" }.join(' ')
|
||||
@interpreter.run( "{ #{history} }" )
|
||||
elsif input.empty?
|
||||
# Remove blank lines from history
|
||||
Reline::HISTORY.pop
|
||||
|
|
Loading…
Reference in a new issue