repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: f2ad401243cdf086ae0554f92d39b93ae57773f7:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit f2ad401243cdf086ae0554f92d39b93ae57773f7
Author: Marc Lehmann 
Date:   Mon Nov 26 12:17:48 2007 +0000

    *** empty log message ***

diff --git a/src/optinc.h b/src/optinc.h
index e4e7858f06df6f57f66ae8059958e21516a781ce..
index ..56c86a6ddb2edb0b3a72e93a5f49116a13714540 100644
--- a/src/optinc.h
+++ b/src/optinc.h
@@ -1,6 +1,5 @@
 // all resource indices, used by rxvtlib.h and rxvtperl.xs

- def(console,               0)
  def(loginShell,            1)
  def(iconic,                2)
  def(visualBell,            3)
@@ -57,4 +56,5 @@
 #else
  nodef(iso14755_52)
 #endif
+ def(console,              33)

diff --git a/src/rxvt.h b/src/rxvt.h
index c7ef169731290f5a7f9fada295c2675fea93d8b7..
index ..fdc05ddadeb207d5531ee981fa289f191e39f052 100644
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1273,11 +1273,18 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {

   bool option (uint8_t opt) const NOTHROW
   {
+    if (!opt) return 0;
+
+    --opt;
     return options[opt >> 3] & (1 << (opt & 7));
   }

   void set_option (uint8_t opt, bool set = true) NOTHROW
   {
+    if (!opt)
+      return;
+
+    --opt;
     if (set)
       options[opt >> 3] |= (1 << (opt & 7));
     else

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