mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-29 01:42:29 +01:00
Patched version of MC with different lha and d64 handlers
This commit is contained in:
16
app-misc/mc/files/mc-4.8.26-ncurses-mouse.patch
Normal file
16
app-misc/mc/files/mc-4.8.26-ncurses-mouse.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
Fix mouse-key input with ncurses6 in terminals without basic X10 mouse
|
||||
support, at the cost of breaking it with ncurses5. See discussion in
|
||||
https://midnight-commander.org/ticket/4144 .
|
||||
|
||||
--- a/lib/tty/key.c
|
||||
+++ b/lib/tty/key.c
|
||||
@@ -2124,8 +2124,7 @@
|
||||
gboolean extended = c == MCKEY_EXTENDED_MOUSE;
|
||||
|
||||
#ifdef KEY_MOUSE
|
||||
- extended = extended || (c == KEY_MOUSE && xmouse_seq == NULL
|
||||
- && xmouse_extended_seq != NULL);
|
||||
+ extended = extended || (c == KEY_MOUSE && xmouse_extended_seq != NULL);
|
||||
#endif /* KEY_MOUSE */
|
||||
|
||||
xmouse_get_event (event, extended);
|
||||
35
app-misc/mc/files/mc-4.8.28-tests.patch
Normal file
35
app-misc/mc/files/mc-4.8.28-tests.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
START_TEST uses the variable name _i, so GCC complains about redefining it with
|
||||
a different type here.
|
||||
|
||||
--- mc-4.8.28/tests/lib/strutil/filevercmp.c 2022-03-20 10:02:47.000000000 +0000
|
||||
+++ mc-4.8.28/tests/lib/strutil/filevercmp.c 2022-03-27 15:31:19.812120141 +0100
|
||||
@@ -353,20 +353,20 @@
|
||||
START_TEST (filevercmp_test5)
|
||||
/* *INDENT-ON* */
|
||||
{
|
||||
- size_t _i;
|
||||
+ size_t ii;
|
||||
|
||||
- for (_i = 0; _i < filevercmp_test_ds5_len; _i++)
|
||||
- for (; filevercmp_test_ds5[_i] != NULL; _i++)
|
||||
+ for (ii = 0; ii < filevercmp_test_ds5_len; ii++)
|
||||
+ for (; filevercmp_test_ds5[ii] != NULL; ii++)
|
||||
{
|
||||
- const char *i = filevercmp_test_ds5[_i];
|
||||
- size_t _j;
|
||||
+ const char *i = filevercmp_test_ds5[ii];
|
||||
+ size_t jj;
|
||||
|
||||
- for (_j = _i; filevercmp_test_ds5[_j] != NULL; _j++)
|
||||
+ for (jj = ii; filevercmp_test_ds5[jj] != NULL; jj++)
|
||||
{
|
||||
- const char *j = filevercmp_test_ds5[_j];
|
||||
+ const char *j = filevercmp_test_ds5[jj];
|
||||
|
||||
- ck_assert_int_eq (test_filevercmp (i, j), 0);
|
||||
- ck_assert_int_eq (test_filevercmp (j, i), 0);
|
||||
+ ck_assert_int_eq (test_filevercmp (i, j), 0);
|
||||
+ ck_assert_int_eq (test_filevercmp (j, i), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user