projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb729cb
)
*** empty log message ***
author
root
<root>
Mon, 26 Nov 2007 12:17:48 +0000
(12:17 +0000)
committer
root
<root>
Mon, 26 Nov 2007 12:17:48 +0000
(12:17 +0000)
src/rxvt.h
patch
|
blob
|
history
diff --git
a/src/rxvt.h
b/src/rxvt.h
index c7ef169731290f5a7f9fada295c2675fea93d8b7..fdc05ddadeb207d5531ee981fa289f191e39f052 100644
(file)
--- 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