diff --git a/ChangeLog b/ChangeLog index fe7157b9aace8daf7f3f326018e93c5ba8d1dd4a..350de8e688a6f11a106172af8bb998bcd05d808d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -271,8 +271,8 @@ CVS code - right place. edit_refresh() - Remove apparently unneeded leaveok() calls. (David Benbennick) - edit_refresh_clearok() - - Removed, as it's now unnecessary. (David Benbennick) + edit_refresh_clearok(), center_cursor() + - Removed, as they are now unnecessary. (David Benbennick) statusbar() - Call reset_cursor() just before refreshing the edit window, so that slang and other non-ncurses versions of curses will diff --git a/src/proto.h b/src/proto.h index a87b3a139b1c1cb4e7f274384969d02d3b75c237..83be010804f3e3c266710e45c786f40d1308de19 100644 --- a/src/proto.h +++ b/src/proto.h @@ -514,7 +514,6 @@ void edit_add(const filestruct *fileptr, const char *converted, int yval, size_t start); void update_line(const filestruct *fileptr, size_t index); void update_cursor(void); -void center_cursor(void); void edit_refresh(void); void edit_update(filestruct *fileptr, topmidnone location); int statusq(int allowtabs, const shortcut *s, const char *def, diff --git a/src/winio.c b/src/winio.c index fdbace522c7c043d85bd6d07e1bbb27bf1c38459..9958e188dcd208751f65e812aa7cb1bc08426ea2 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2215,12 +2215,6 @@ void update_cursor(void) #endif } -void center_cursor(void) -{ - current_y = editwinrows / 2; - wmove(edit, current_y, current_x); -} - /* Refresh the screen without changing the position of lines. */ void edit_refresh(void) {