Commit c279a631 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 2 additions and 9 deletions
+2 -9
...@@ -271,8 +271,8 @@ CVS code - ...@@ -271,8 +271,8 @@ CVS code -
right place. right place.
edit_refresh() edit_refresh()
- Remove apparently unneeded leaveok() calls. (David Benbennick) - Remove apparently unneeded leaveok() calls. (David Benbennick)
edit_refresh_clearok() edit_refresh_clearok(), center_cursor()
- Removed, as it's now unnecessary. (David Benbennick) - Removed, as they are now unnecessary. (David Benbennick)
statusbar() statusbar()
- Call reset_cursor() just before refreshing the edit window, so - Call reset_cursor() just before refreshing the edit window, so
that slang and other non-ncurses versions of curses will that slang and other non-ncurses versions of curses will
......
...@@ -514,7 +514,6 @@ void edit_add(const filestruct *fileptr, const char *converted, int ...@@ -514,7 +514,6 @@ void edit_add(const filestruct *fileptr, const char *converted, int
yval, size_t start); yval, size_t start);
void update_line(const filestruct *fileptr, size_t index); void update_line(const filestruct *fileptr, size_t index);
void update_cursor(void); void update_cursor(void);
void center_cursor(void);
void edit_refresh(void); void edit_refresh(void);
void edit_update(filestruct *fileptr, topmidnone location); void edit_update(filestruct *fileptr, topmidnone location);
int statusq(int allowtabs, const shortcut *s, const char *def, int statusq(int allowtabs, const shortcut *s, const char *def,
......
...@@ -2215,12 +2215,6 @@ void update_cursor(void) ...@@ -2215,12 +2215,6 @@ void update_cursor(void)
#endif #endif
} }
void center_cursor(void)
{
current_y = editwinrows / 2;
wmove(edit, current_y, current_x);
}
/* Refresh the screen without changing the position of lines. */ /* Refresh the screen without changing the position of lines. */
void edit_refresh(void) void edit_refresh(void)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment