From c279a631007b2ab5ee363826e7551256cc8b2939 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 25 May 2004 01:49:58 +0000 Subject: [PATCH] per DB's patch, also remove the now-unused center_cursor() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1764 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++-- src/proto.h | 1 - src/winio.c | 6 ------ 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe7157b9..350de8e6 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 a87b3a13..83be0108 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 fdbace52..9958e188 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) {