From fabb3318b36ef82dd8e23c13eab3dbb715307fb6 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 28 Jan 2016 03:39:56 +0100 Subject: [PATCH] fix crash when pressing enter after select mode with no selection --- bin/fcscs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/fcscs b/bin/fcscs index d457471..017ae5b 100755 --- a/bin/fcscs +++ b/bin/fcscs @@ -611,6 +611,8 @@ sub extend_match { $screen->debug('extend_match', 'started'); + return if not defined $match; + $screen->prompt(name => 'extend', value => undef); $screen->draw_prompt($config); -- 2.45.2