From d7665136bced5ff02e75d3c4e7bc63e945913bdd Mon Sep 17 00:00:00 2001 From: William McBrine Date: Fri, 21 Jul 2006 02:58:23 +0000 Subject: [PATCH] Eliminated the redundant cursor updates that were added when moving CURSES_REFRESH to PDC_transform_line(). --- x11/pdcdisp.c | 6 +++++- x11/process/x11.c | 5 +---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/x11/pdcdisp.c b/x11/pdcdisp.c index e698103c..240a4033 100644 --- a/x11/pdcdisp.c +++ b/x11/pdcdisp.c @@ -19,7 +19,7 @@ #include -RCSID("$Id: pdcdisp.c,v 1.26 2006/07/17 21:45:16 wmcbrine Exp $"); +RCSID("$Id: pdcdisp.c,v 1.27 2006/07/21 02:58:23 wmcbrine Exp $"); /*man-start************************************************************** @@ -146,4 +146,8 @@ void PDC_transform_line(int lineno) curscr->_lastch[lineno] = _NO_CHANGE; XCursesInstructAndWait(CURSES_REFRESH); + + if (lineno == SP->cursrow) + XCurses_display_cursor(SP->cursrow, SP->curscol, + SP->cursrow, SP->curscol, 1); } diff --git a/x11/process/x11.c b/x11/process/x11.c index 8a4520eb..83ba5e81 100644 --- a/x11/process/x11.c +++ b/x11/process/x11.c @@ -19,7 +19,7 @@ #include -RCSID("$Id: x11.c,v 1.55 2006/07/17 22:08:20 wmcbrine Exp $"); +RCSID("$Id: x11.c,v 1.56 2006/07/21 02:58:23 wmcbrine Exp $"); int visible_cursor = 0; int windowEntered = 1; @@ -129,9 +129,6 @@ int XCursesRefreshScreen(void) if (mouse_selection) SelectionOff(); - visible_cursor = 1; - XCursesDisplayCursor(SP->cursrow, SP->curscol, - SP->cursrow, SP->curscol); return 0; }