diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-12-07 10:27:08 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-12-07 10:27:08 +0000 |
commit | a88615c3853b88cd475dbe31860818a8fa4eba67 (patch) | |
tree | 4f9afb4ca4fabb50f96914bc6fcf5f118e45558a /misc/mc | |
parent | 9cb3af96befa496691429439ce5355f1cfadb725 (diff) | |
download | ports-a88615c3853b88cd475dbe31860818a8fa4eba67.tar.gz ports-a88615c3853b88cd475dbe31860818a8fa4eba67.zip |
Notes
Diffstat (limited to 'misc/mc')
-rw-r--r-- | misc/mc/files/patch-lib__tty__key.c | 18 | ||||
-rw-r--r-- | misc/mc/files/patch-lib__tty__tty-ncurses.c | 26 | ||||
-rw-r--r-- | misc/mc/files/patch-lib__tty__win.c (renamed from misc/mc/files/patch-lib-tty-win.c) | 4 |
3 files changed, 46 insertions, 2 deletions
diff --git a/misc/mc/files/patch-lib__tty__key.c b/misc/mc/files/patch-lib__tty__key.c new file mode 100644 index 000000000000..6aac84cef778 --- /dev/null +++ b/misc/mc/files/patch-lib__tty__key.c @@ -0,0 +1,18 @@ +--- ./lib/tty/key.c.orig 2013-11-29 19:27:07.000000000 +0100 ++++ ./lib/tty/key.c 2013-12-07 10:51:45.000000000 +0100 +@@ -1946,6 +1946,7 @@ + tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block) + { + int c; ++ static int flag = 0; /* Return value from select */ + #ifdef HAVE_LIBGPM + static struct Gpm_Event ev; /* Mouse event */ + #endif +@@ -1978,7 +1979,6 @@ + while (pending_keys == NULL) + { + int nfd; +- static int flag = 0; /* Return value from select */ + fd_set select_set; + + FD_ZERO (&select_set); diff --git a/misc/mc/files/patch-lib__tty__tty-ncurses.c b/misc/mc/files/patch-lib__tty__tty-ncurses.c new file mode 100644 index 000000000000..d3a4d579069f --- /dev/null +++ b/misc/mc/files/patch-lib__tty__tty-ncurses.c @@ -0,0 +1,26 @@ +--- ./lib/tty/tty-ncurses.c.orig 2013-11-29 19:27:07.000000000 +0100 ++++ ./lib/tty/tty-ncurses.c 2013-12-07 10:50:19.000000000 +0100 +@@ -49,6 +49,7 @@ + #include "tty-internal.h" /* mc_tty_normalize_from_utf8() */ + #include "tty.h" + #include "color-internal.h" ++#include "key.h" + #include "mouse.h" + #include "win.h" + +@@ -530,6 +531,7 @@ + if (mc_global.utf8_display || c > 255) + { + int res; ++ unsigned char str[UTF8_CHAR_LEN + 1]; + + res = g_unichar_to_utf8 (c, (char *) str); + if (res == 0) +@@ -540,7 +542,6 @@ + } + else + { +- unsigned char str[UTF8_CHAR_LEN + 1]; + const char *s; + + str[res] = '\0'; diff --git a/misc/mc/files/patch-lib-tty-win.c b/misc/mc/files/patch-lib__tty__win.c index be9b4631d64f..cf51d91365af 100644 --- a/misc/mc/files/patch-lib-tty-win.c +++ b/misc/mc/files/patch-lib__tty__win.c @@ -1,5 +1,5 @@ ---- lib/tty/win.c.old 2012-04-05 02:20:57.000000000 +0900 -+++ lib/tty/win.c 2012-04-05 02:24:53.000000000 +0900 +--- ./lib/tty/win.c.orig 2013-09-02 19:13:32.000000000 +0200 ++++ ./lib/tty/win.c 2013-12-07 10:33:20.000000000 +0100 @@ -96,7 +96,7 @@ void do_enter_ca_mode (void) |