Disable vi-cursor in tests

Otherwise this breaks if run inside a terminal that could do the cursor.
This commit is contained in:
Fabian Homborg 2019-05-05 17:31:33 +02:00
parent 8f3f4bbc9c
commit afff93bdb2

View File

@ -4,6 +4,12 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
return
end
# This is hard to test in expect, since the exact sequences depend on the environment.
# Instead disable it.
if set -q FISH_UNIT_TESTS_RUNNING
return
end
# Emacs Makes All Cursors Suck
if set -q INSIDE_EMACS
return