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:
liljencrantz 2007-09-10 00:06:41 +10:00
parent 76bb8e79b2
commit c780f1a8c9

View File

@ -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,