Skip to content

Commit

Permalink
fix: quotes on commandline
Browse files Browse the repository at this point in the history
  • Loading branch information
Realiserad committed Jun 8, 2024
1 parent 2bb84c0 commit 427b83d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fish_ai/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def get_commandline_history(commandline):
commandline_history = subprocess.check_output(
[
'fish', '-c',
'history search --max {history_size} --prefix {commandline}'
'history search --max {history_size} --prefix "{commandline}"'
.format(history_size=history_size,
commandline=commandline,
commandline=commandline.replace('"', "'")
)
]).decode('utf-8')
if commandline_history.strip() == '':
Expand Down

0 comments on commit 427b83d

Please sign in to comment.