mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Do not use enter/exit_ca_mode if they don't exist in fish_pager
darcs-hash:20070909140641-75c98-7c7ff3fae5be6432998a30c51ad90ae4c6e3babe.gz
This commit is contained in:
parent
76bb8e79b2
commit
c780f1a8c9
13
fish_pager.c
13
fish_pager.c
|
@ -672,8 +672,17 @@ static int completion_try_print( int cols,
|
|||
int npos, pos = 0;
|
||||
int do_loop = 1;
|
||||
|
||||
is_ca_mode=1;
|
||||
writembs(enter_ca_mode);
|
||||
/*
|
||||
Enter ca_mode, which means that the terminal
|
||||
content will be restored to the current
|
||||
state on exit.
|
||||
*/
|
||||
if( enter_ca_mode && exit_ca_mode )
|
||||
{
|
||||
is_ca_mode=1;
|
||||
writembs(enter_ca_mode);
|
||||
}
|
||||
|
||||
|
||||
completion_print( cols,
|
||||
width,
|
||||
|
|
Loading…
Reference in New Issue
Block a user