From: root Date: Wed, 22 Jun 2005 14:33:23 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=cd434073710706730e42a4f5c525a36a987db24a;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index c55c8788..b4e4b094 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,4 @@ TODO: can sth. be done about "double-wide character on last row" -TODO: when the cursor is out-of-margin to the left, it does not treat double-width - chars correctly when unfocused. TODO: do font request caching, might help rxvtd on some machines TODO: safer command: keymap processing. TODO: "slow" rendering mode for bidi and scripts @@ -30,6 +28,8 @@ WISH: just for fun, do shade and tint with XRender. cutting pieces off of characters. - rxvt is now more restrictive in what font heights it accepts for fonts that will likely overshoot or underhsoot lines. + - fix a cosmetic problem with the unfocused cursor on a wide character + at the end of the line (reported by Mikachu). 5.5 Sat Apr 23 22:31:36 CEST 2005 - re-enabled modifer state matching as in 5.3, but implement diff --git a/src/screen.C b/src/screen.C index f91155fc..5b088e7c 100644 --- a/src/screen.C +++ b/src/screen.C @@ -2435,17 +2435,23 @@ rxvt_term::scr_refresh (unsigned char refresh_type) } else if (oldcursor.row >= 0) { + int cursorwidth = 1; + int col = oldcursor.col; + + while (col && screen.text[screen.cur.row + TermWin.saveLines][col] == NOCHAR) + col--; + + while (col + cursorwidth < TermWin.ncol + && drawn_text[oldcursor.row][col + cursorwidth] == NOCHAR) + cursorwidth++; + #ifndef NO_CURSORCOLOR if (ISSET_PIXCOLOR (Color_cursor)) XSetForeground (display->display, TermWin.gc, pix_colors[Color_cursor]); #endif - int cursorwidth = 1; - while (oldcursor.col + cursorwidth < TermWin.ncol - && drawn_text[oldcursor.row][oldcursor.col + cursorwidth] == NOCHAR) - cursorwidth++; XDrawRectangle (display->display, drawBuffer, TermWin.gc, - Col2Pixel (oldcursor.col), + Col2Pixel (col), Row2Pixel (oldcursor.row), (unsigned int) (Width2Pixel (cursorwidth) - 1), (unsigned int) (Height2Pixel (1) - TermWin.lineSpace - 1));