Eliminated the redundant cursor updates that were added when moving

CURSES_REFRESH to PDC_transform_line().
This commit is contained in:
William McBrine
2006-07-21 02:58:23 +00:00
parent f27f87c011
commit d7665136bc
2 changed files with 6 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
#include <string.h>
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);
}

View File

@@ -19,7 +19,7 @@
#include <stdlib.h>
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;
}