m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 07:13:48 -05:00

Do not proceed if $TERM is invalid

Related #305
This commit is contained in:
Junegunn Choi
2015-07-28 14:35:46 +09:00
parent dce6fe6f2d
commit 02bd2d2adf
2 changed files with 10 additions and 0 deletions

View File

@@ -743,6 +743,11 @@ class TestGoFZF < TestBase
tmux.send_keys :Enter
end
def test_invalid_term
tmux.send_keys "TERM=xxx fzf", :Enter
tmux.until { |lines| lines.any? { |l| l.include? 'Invalid $TERM: xxx' } }
end
private
def writelines path, lines
File.unlink path while File.exists? path