repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: f2ad401243cdf086ae0554f92d39b93ae57773f7: path_to: revision_to:
commit f2ad401243cdf086ae0554f92d39b93ae57773f7 Author: Marc LehmannDate: Mon Nov 26 12:17:48 2007 +0000 *** empty log message *** diff --git a/src/optinc.h b/src/optinc.h
--- 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
--- 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-----