]> ruderich.org/simon Gitweb - fcscs/fcscs.git/commitdiff
fix crash when pressing enter after select mode with no selection
authorSimon Ruderich <simon@ruderich.org>
Thu, 28 Jan 2016 02:39:56 +0000 (03:39 +0100)
committerSimon Ruderich <simon@ruderich.org>
Thu, 28 Jan 2016 02:39:56 +0000 (03:39 +0100)
bin/fcscs

index d45747123a55f60acf2ea913b3df6b03be906537..017ae5bfa327ad4b109efaeb1b24a24cd1e7be17 100755 (executable)
--- a/bin/fcscs
+++ b/bin/fcscs
@@ -611,6 +611,8 @@ sub extend_match {
 
     $screen->debug('extend_match', 'started');
 
 
     $screen->debug('extend_match', 'started');
 
+    return if not defined $match;
+
     $screen->prompt(name => 'extend', value => undef);
     $screen->draw_prompt($config);
 
     $screen->prompt(name => 'extend', value => undef);
     $screen->draw_prompt($config);