]> ruderich.org/simon Gitweb - fcscs/fcscs.git/blobdiff - bin/fcscs
fix crash when pressing enter after select mode with no selection
[fcscs/fcscs.git] / bin / fcscs
index 50faa1adccef22af48defbfa9271a0f6c8760cbe..017ae5bfa327ad4b109efaeb1b24a24cd1e7be17 100755 (executable)
--- a/bin/fcscs
+++ b/bin/fcscs
@@ -108,6 +108,9 @@ To change the selection mode (e.g. paths, files, etc.) use one of the mappings
 explained below. Per default URLs are selected, see options for a way to
 change this.
 
 explained below. Per default URLs are selected, see options for a way to
 change this.
 
+I<NOTE>: Opening URLs in the browser passes the URL via the command line which
+leaks URLs to other users on the current system via C<ps aux> or C<top>.
+
 I<NOTE>: When yanking (copying) a temporary file is used to pass the data to
 GNU screen/Tmux without exposing it to C<ps aux> or C<top>. However this may
 leak data if those temporary files are written to disk. To prevent this change
 I<NOTE>: When yanking (copying) a temporary file is used to pass the data to
 GNU screen/Tmux without exposing it to C<ps aux> or C<top>. However this may
 leak data if those temporary files are written to disk. To prevent this change
@@ -608,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);