* configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and
COLS can safely be redefined. Fixes compilation issues with cygwin, and likely
with newer versions of ncurses, fixes Savannah bug 28984 repoted by Andy Koppe
and Eric Oliver via mailing list.
* winio.c (get_mouseinput) - fix stray semicolon in code, also reported in
bug 28984.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4484
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
+2010-03-07 Chris Allegretta <chrisa@asty.org>
+ * configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and
+ COLS can safely be redefined. Fixes compilation issues with cygwin, and likely
+ with newer versions of ncurses, fixes Savannah bug 28984 repoted by Andy Koppe
+ and Eric Oliver via mailing list.
+ * winio.c (get_mouseinput) - fix stray semicolon in code, also reported in
+ bug 28984.
+
GNU nano 2.2.3 - 2010.02.11
2010-01-28 Chris Allegretta <chrisa@asty.org>
* move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cusor
fi
#fi
+AC_MSG_CHECKING([whether LINES and COLS can be redefined])
+AC_TRY_RUN([
+#include <curses.h>
+int main(void)
+{
+ LINES = 80;
+ COLS = 25;
+ return 0;
+}],
+AC_DEFINE(REDEFINIG_MACROS_OK, 1, [Define this if you know your curses library allows LINES and COLS to be redefined to deal with a resizing bug])
+AC_MSG_RESULT(yes),
+AC_MSG_RESULT(no),
+AC_MSG_WARN([*** Can't check for macro redefinability when cross-compiling]))
+
+
# Check for groff html support
AC_MSG_CHECKING([for HTML support in groff])
groff -t -mandoc -Thtml </dev/null >/dev/null
* otherwise. However, COLS and LINES are curses global variables,
* and in some cases curses has already updated them. But not in
* all cases. Argh. */
+#ifdef REDEFINIG_MACROS_OK
COLS = win.ws_col;
LINES = win.ws_row;
+#endif
/* If we've partitioned the filestruct, unpartition it now. */
if (filepart != NULL)
* wheel is equivalent to moving down three lines. */
for (i = 0; i < 3; i++)
unget_kbinput((mevent.bstate & BUTTON4_PRESSED) ?
- sc_seq_or(do_up_void, 0) : sc_seq_or(DO_DOWN_VOID, 0);, FALSE,
+ sc_seq_or(DO_UP_VOID, 0) : sc_seq_or(DO_DOWN_VOID, 0), FALSE,
FALSE);
return 1;