From 89ca96bd88412b305fbe700ffec4575e67909237 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 28 Aug 2006 14:31:29 +0000 Subject: [PATCH] in handle_sigwinch(), just in case we're in the statusbar prompt, reset the statusbar cursor position when resizing the window git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3859 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/nano.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 54a9c40d..4dd8ba2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -163,6 +163,10 @@ CVS code - lines would not be updated properly if the current line was not the first or last line of the edit window. (DLR, found by Mike Frysinger) +- nano.c: + handle_sigwinch() + - Just in case we're in the statusbar prompt, reset the + statusbar cursor position when resizing the window. (DLR) - nano.h: - Remove the manual disabling of color support if regex.h isn't found, as configure.ac now handles that. (DLR) diff --git a/src/nano.c b/src/nano.c index 8e8dd6d6..7ce83123 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1088,6 +1088,10 @@ RETSIGTYPE handle_sigwinch(int signal) COLS = win.ws_col; LINES = win.ws_row; + /* Just in case we're in the statusbar prompt, reset the statusbar + * cursor position. */ + do_prompt_abort(); + /* If we've partitioned the filestruct, unpartition it now. */ if (filepart != NULL) unpartition_filestruct(&filepart); -- 2.39.5