From: root Date: Sat, 31 Dec 2005 19:30:25 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=15bf01f5c462784b8cbdff8df4444b2e6049011a;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index d3e57bc4..f24e7fc5 100644 --- a/Changes +++ b/Changes @@ -25,6 +25,8 @@ WISH: just for fun, do shade and tint with XRender. - replaced callback.h by a fixed version from gvpe that correctly returns the callback result (affects new -pty-fd semantics in urxvtc on a few architectures). Reported by darix. + - include one trailing space in rectangular selections to indicate + the inserted newline (yeah, weird, but visually more pleasing). - further minor cleanups. 6.1 Tue Dec 27 13:23:40 CET 2005 diff --git a/src/rxvt.h b/src/rxvt.h index 79ec5d9a..a6e28c9b 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -378,21 +378,24 @@ enum { SECONDARY, }; -#define RS_None 0 /* Normal */ +#define RS_None 0 -#define RS_fgMask 0x0000007fUL /* 128 colors */ -#define RS_bgMask 0x00003f80UL /* 128 colors */ +#define RS_fgMask 0x0000007fUL // 128 colors +#define RS_bgMask 0x00003f80UL // 128 colors // font styles #define RS_Bold 0x00004000UL // value 1 #define RS_Italic 0x00008000UL // value 2 // fake styles -#define RS_Blink 0x00010000UL /* blink */ -#define RS_RVid 0x00020000UL /* reverse video */ -#define RS_Uline 0x00040000UL /* underline */ - -// 5 bits still to go +#define RS_Blink 0x00010000UL // blink +#define RS_RVid 0x00020000UL // reverse video +#define RS_Uline 0x00040000UL // underline + +// 5 custom bits for extensions +#define RS_customCount 32 +#define RS_customMask 0x00f80000UL +#define RS_customShift 19 // other flags #define RS_Careful 0x80000000UL /* be careful when drawing these */ diff --git a/src/screen.C b/src/screen.C index 25c8c26c..6b44a2a3 100644 --- a/src/screen.C +++ b/src/screen.C @@ -2459,6 +2459,9 @@ rxvt_term::scr_reverse_selection () while (col-- > selection.beg.col && (stp[col] == NOCHAR || unicode::is_space (stp[col]))) srp[col] ^= RS_RVid | RS_Uline; + + if (++col < selection.end.col) + srp[col] ^= RS_RVid | RS_Uline; } } else