diff options
author | 2007-09-10 00:06:41 +1000 | |
---|---|---|
committer | 2007-09-10 00:06:41 +1000 | |
commit | c780f1a8c92ad40d00491a38d28ed11798732848 (patch) | |
tree | 88420d1c1d9e61ebdb2edc43c1200211d2e67169 /fish_pager.c | |
parent | 76bb8e79b23556360881f3a8037542265b41a135 (diff) |
Do not use enter/exit_ca_mode if they don't exist in fish_pager
darcs-hash:20070909140641-75c98-7c7ff3fae5be6432998a30c51ad90ae4c6e3babe.gz
Diffstat (limited to 'fish_pager.c')
-rw-r--r-- | fish_pager.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fish_pager.c b/fish_pager.c index 1af08695..2bdde352 100644 --- a/fish_pager.c +++ b/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, |