When $DRACULA_ARROW_ICON begins with an unescaped - character, it will be read as a command line flag by the print command. This causes the error dracula_arrow:print:2: bad option: -> (for example) to get outputted on each new prompt line. This PR passes the -- flag to print before passing $DRACULA_ARROW_ICON to ensure that print does not attempt to parse the arrow icon as a command-line flag.
If you're fixing a UI issue, make sure you take two screenshots. One that shows the actual bug and another that shows how you fixed it.
Before:
After:
Note: the literal string value of $DRACULA_ARROW_ICON in this context is ->, I'm using a font with ligatures that merges those two first characters into one symbol.
When
$DRACULA_ARROW_ICON
begins with an unescaped-
character, it will be read as a command line flag by theprint
command. This causes the errordracula_arrow:print:2: bad option: ->
(for example) to get outputted on each new prompt line. This PR passes the--
flag toprint
before passing$DRACULA_ARROW_ICON
to ensure thatprint
does not attempt to parse the arrow icon as a command-line flag.Note: the literal string value of
$DRACULA_ARROW_ICON
in this context is->
, I'm using a font with ligatures that merges those two first characters into one symbol.