From f8e745ff9d3d1c36cdbaf2d048d447906b5d5111 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 26 Nov 2007 12:17:48 +0000 Subject: [PATCH] *** empty log message *** --- src/rxvt.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rxvt.h b/src/rxvt.h index c7ef1697..fdc05dda 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 -- 2.34.1