From 25305c6b24b990949676baf7b2009f0b7df7e684 Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Sun, 14 Oct 2007 21:16:40 +1000 Subject: [PATCH] Fix bug in pager causing some keybindings to be ignoerd because other are undefined darcs-hash:20071014111640-75c98-c4d271f9b033a4f644e1b58cdb2e8842aff198d2.gz --- fish_pager.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fish_pager.c b/fish_pager.c index cdf75de45..4fea0da73 100644 --- a/fish_pager.c +++ b/fish_pager.c @@ -324,8 +324,13 @@ static wint_t readch() ; int i; - for( i=0; m[i].seq; i++ ) + for( i=0; m[i].bnd; i++ ) { + if( !m[i].seq ) + { + continue; + } + if( try_sequence(m[i].seq ) ) return m[i].bnd; }