From: Simon Ruderich Date: Thu, 28 Jan 2016 02:39:56 +0000 (+0100) Subject: fix crash when pressing enter after select mode with no selection X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=fabb3318b36ef82dd8e23c13eab3dbb715307fb6;p=fcscs%2Ffcscs.git fix crash when pressing enter after select mode with no selection --- 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);