repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 88385d169c4e46759f6df872aa8833bdcd1145d0:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 88385d169c4e46759f6df872aa8833bdcd1145d0
Author: Emanuele Giaquinta 
Date:   Sat Oct 11 22:02:50 2014 +0000

    Fix extension autoload.

diff --git a/doc/rxvt.1.pod b/doc/rxvt.1.pod
index 1227a85b18376ae9a23b77e21b23248d25d0a6c6..
index ..02f26e08370347d5792ed10fc42e15e13f5a2570 100644
--- a/doc/rxvt.1.pod
+++ b/doc/rxvt.1.pod
@@ -1230,10 +1230,12 @@ example, C will use all the default extensions except
 C.

 The default set includes the C, C,
-C and C extensions, any extensions that define
-keybindings via C meta comments, extensions loaded because
-their resources/commandline switches were used, and extensions which are
-mentioned in B resources.
+C and C extensions, any extensions that
+define keybindings via C meta comments, and extensions which
+are mentioned in B resources.
+
+Any extension such that a corresponding resource is given on the
+command line is automatically appended to B.

 Each extension is looked up in the library directories, loaded if
 necessary, and bound to the current terminal instance. When the library
diff --git a/src/urxvt.pm b/src/urxvt.pm
index 05ff8dbff6bb93529dd2adb591bec9727d37bd09..
index ..01d15ff44dad020e79557af4e44bb9100366f1bb 100644
--- a/src/urxvt.pm
+++ b/src/urxvt.pm
@@ -681,14 +681,14 @@ sub invoke {
       }

       for (
-         grep $_, map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2
+         (grep $_, map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2),
+         @{ delete $TERM->{perl_ext_3} }
       ) {
          if ($_ eq "default") {

             $ext_arg{$_} = []
                for
                   qw(selection option-popup selection-popup readline),
-                  @{ delete $TERM->{perl_ext_3} },
                   map $_->[0], values %{ $TERM->{meta}{binding} };

             for ($TERM->_keysym_resources) {

-----END OF PAGE-----