pkgsrc/news/tin/patches/patch-ag

29 lines
715 B
Text
Raw Normal View History

$NetBSD: patch-ag,v 1.1 2009/10/22 22:01:26 wiz Exp $
--- src/curses.c.orig 2008-12-30 20:26:23.000000000 +0100
+++ src/curses.c
@@ -32,6 +32,7 @@
#if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) && defined(M_UNIX)
# define ReadWch cmdReadWch
#endif /* MULTIBYTE_ABLE && !NO_LOCALE && M_UNIX */
+#define get_arrow_key cmd_get_arrow_key
void my_dummy(void) { } /* ANSI C requires non-empty file */
t_bool have_linescroll = TRUE; /* USE_CURSES always allows line scrolling */
@@ -920,6 +921,7 @@ word_highlight_string(
tputs(_reset, 1, outchar);
stow_cursor();
}
+#endif /* USE_CURSES */
/*
@@ -1142,7 +1144,6 @@ get_arrow_key(
return KEYMAP_UNKNOWN;
}
}
-#endif /* USE_CURSES */
/*