--- rxvt-unicode/src/command.C 2005/07/13 02:47:02 1.204 +++ rxvt-unicode/src/command.C 2005/08/11 02:05:07 1.206 @@ -1654,18 +1654,18 @@ { TermWin.focus = 1; want_refresh = 1; -#ifdef USE_XIM +#if USE_XIM if (Input_Context != NULL) { IMSetStatusPosition (); XSetICFocus (Input_Context); } #endif -#ifdef CURSOR_BLINK +#if CURSOR_BLINK if (options & Opt_cursorBlink) cursor_blink_ev.start (NOW + BLINK_INTERVAL); #endif -#ifdef OFF_FOCUS_FADING +#if OFF_FOCUS_FADING if (rs[Rs_fade]) { pix_colors = pix_colors_focused; @@ -1689,16 +1689,16 @@ #if ENABLE_OVERLAY scr_overlay_off (); #endif -#ifdef USE_XIM +#if USE_XIM if (Input_Context != NULL) XUnsetICFocus (Input_Context); #endif -#ifdef CURSOR_BLINK +#if CURSOR_BLINK if (options & Opt_cursorBlink) cursor_blink_ev.stop (); hidden_cursor = 0; #endif -#ifdef OFF_FOCUS_FADING +#if OFF_FOCUS_FADING if (rs[Rs_fade]) { pix_colors = pix_colors_unfocused; @@ -2659,7 +2659,9 @@ if (ch == C0_LF || str >= eol) { - nlines++; + if (ch == C0_LF) + nlines++; + refresh_count++; if (!(options & Opt_jumpScroll)