aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--fish_pager.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fish_pager.c b/fish_pager.c
index cdf75de4..4fea0da7 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;
}