fix Save context menu entry in vim/vis/kakoune

This is more than cosmetic. In sxmo_appmenu.sh this line:

```
CMD=3D"$(printf "%s\n" "$CHOICES" | grep -m1 -F "$PICKED" | cut -d '^' -f3)=
"
```

finds the command of the first entry that has `$PICKED` prefix.
Before this change it would pick `$icon_cls Save and Quit`.

The bug is realy sxmo_appmenu.sh, but it's hard to change the
`grep -F` into a `grep -e "^$PICKED\s^ [01] ^"` while guarantying
nothing breaks.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
Bruno Dupuis
2022-03-02 14:30:59 +00:00
committed by Stacy Harper
parent d96297f562
commit 1970968682

View File

@@ -188,7 +188,7 @@ case "$WMCLASS" in
#Vim in foot
CHOICES="
$icon_cls Save and Quit ^ 0 ^ sxmo_type -k Escape -s 300 ':wq' -k Return
$icon_cls Save ^ 0 ^ sxmo_type -k Escape -s 300 ':w' -k Return
$icon_sav Save ^ 0 ^ sxmo_type -k Escape -s 300 ':w' -k Return
$icon_cls Quit without saving ^ 0 ^ sxmo_type -k Escape -s 300 ':q!' -k Return
$icon_aru Scroll up ^ 1 ^ sxmo_type -M Ctrl u
$icon_ard Scroll down ^ 1 ^ sxmo_type -M Ctrl d