checks: make tmux-multiline-prompt less affected by less config

Fixes #11881 for me. Thanks, @krobelus, for the help with debugging
this!

The `-+X` is unrelated to the bug, strictly speaking, but makes sure the
test tests what it is intended to test.

I initially thought of also adding `LESS=` and something like
`--lesskey-content=""` to the command, but I decided against it since
`less` can also maybe be configured with `LESSOPEN` (?) and I don't know
how long the `--lesskey-content` option existed.

Closes #11891
This commit is contained in:
Ilya Grigoriev
2025-10-05 10:22:53 -07:00
committed by Johannes Altmanninger
parent 778baaecb5
commit e1f6ab8916

View File

@@ -49,8 +49,8 @@ isolated-tmux capture-pane -p | tail -n 5
# CHECK:
# CHECK:
# Test repainint after running an external program that uses the alternate screen.
isolated-tmux send-keys "bind ctrl-r 'echo | less +q; commandline \"echo Hello World\"'" Enter C-l
# Test repainting after running an external program that uses the alternate screen.
isolated-tmux send-keys "bind ctrl-r 'echo | less -+F -+X +q; commandline \"echo Hello World\"'" Enter C-l
isolated-tmux send-keys C-r
tmux-sleep
isolated-tmux send-keys Enter