Prompt demo: Only the unmatched quote is an error

The text after is normal quoted text since
822b53c67a.

We might want to find nicer error text.

Fixes #8260.
This commit is contained in:
Fabian Homborg 2021-08-30 17:32:55 +02:00
parent 23e6698dc8
commit 4194977569
2 changed files with 6 additions and 2 deletions

View file

@ -162,7 +162,7 @@ function fish_config --description "Launch fish's web based configuration"
set_color normal
echo -ns (set_color $fish_color_command) echo
echo -ns (set_color normal) ' '
echo -s (set_color $fish_color_error) "'Errors are the portal to discovery"
echo -s (set_color $fish_color_error) "'" (set_color $fish_color_quote) "Errors are the portal to discovery"
set_color normal
echo -ns (set_color $fish_color_command) Th
set_color normal

View file

@ -65,7 +65,11 @@ fish cannot change the background color of your terminal. Refer to your terminal
ng-mouseenter="csHoveredType = 'error'"
ng-mouseleave="csHoveredType = false"
data-ng-style="{ 'color': interpret_color(selectedColorScheme.error)}"
ng-click="selectColorSetting('error')">'Errors are the portals to discovery</span>
ng-click="selectColorSetting('error')">'</span><span ng-class="{cs_clickable: customizationActive, cs_editing: csEditingType == 'quote'}"
ng-mouseenter="csHoveredType = 'quote'"
ng-mouseleave="csHoveredType = false"
data-ng-style="{ 'color': interpret_color(selectedColorScheme.quote)}"
ng-click="selectColorSetting('quote')">Errors are the portals to discovery</span>
<br>