diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2012-07-30 13:00:36 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2012-07-30 13:00:36 +0000 |
commit | d02e35935394bbf855225ed90457102895503d89 (patch) | |
tree | b6d6fe6a12f76be253c0be2bc2df9f2c87da9c7a /app-misc/mc/files | |
parent | Stable ppc, bug #428408 (diff) | |
download | historical-d02e35935394bbf855225ed90457102895503d89.tar.gz historical-d02e35935394bbf855225ed90457102895503d89.tar.bz2 historical-d02e35935394bbf855225ed90457102895503d89.zip |
Fixed bug #427786 and bug #428568
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
Diffstat (limited to 'app-misc/mc/files')
-rw-r--r-- | app-misc/mc/files/mc-4.8.4-Ticket-2853-fileposition-in-mcedit.patch | 56 | ||||
-rw-r--r-- | app-misc/mc/files/mc-4.8.4-Ticket-2858-htmlview-segfault.patch | 36 |
2 files changed, 92 insertions, 0 deletions
diff --git a/app-misc/mc/files/mc-4.8.4-Ticket-2853-fileposition-in-mcedit.patch b/app-misc/mc/files/mc-4.8.4-Ticket-2853-fileposition-in-mcedit.patch new file mode 100644 index 000000000000..a67352d2a6c1 --- /dev/null +++ b/app-misc/mc/files/mc-4.8.4-Ticket-2853-fileposition-in-mcedit.patch @@ -0,0 +1,56 @@ +https://www.midnight-commander.org/ticket/2853 +https://www.midnight-commander.org/changeset/972beef6ea2392ab30d755e3421b3dd0b4e2a3df + +Index: src/args.c +=================================================================== +--- src/args.c (revision 23c95d36ac4465627fbc9183e083a8320df77fcf) ++++ src/args.c (revision 972beef6ea2392ab30d755e3421b3dd0b4e2a3df) +@@ -546,5 +546,5 @@ + else + { +- arg = mcedit_arg_vpath_new (tmp_vpath, 1); ++ arg = mcedit_arg_vpath_new (tmp_vpath, 0); + vfs_path_free (fname_vpath); + } +@@ -553,5 +553,5 @@ + } + else +- arg = mcedit_arg_new (tmp, 1); ++ arg = mcedit_arg_new (tmp, 0); + + flist = g_list_prepend (flist, arg); +@@ -559,12 +559,9 @@ + + if (flist == NULL) +- flist = g_list_prepend (flist, mcedit_arg_new (NULL, 1)); ++ flist = g_list_prepend (flist, mcedit_arg_new (NULL, 0)); + else if (first_line_number != -1) + { + /* overwrite line number for first file */ + GList *l; +- +- if (first_line_number == 0) +- first_line_number = 1; + + l = g_list_last (flist); +@@ -820,5 +817,5 @@ + * + * @param file_name file name +- * @param line_number line number ++ * @param line_number line number. If value is 0, try to restore saved position. + * @return mcedit_arg_t object + */ +@@ -835,5 +832,5 @@ + * + * @param file_vpath file path object +- * @param line_number line number ++ * @param line_number line number. If value is 0, try to restore saved position. + * @return mcedit_arg_t object + */ +@@ -846,6 +843,4 @@ + arg = g_new (mcedit_arg_t, 1); + arg->file_vpath = file_vpath; +- if (line_number == 0) +- line_number = 1; + arg->line_number = line_number; + diff --git a/app-misc/mc/files/mc-4.8.4-Ticket-2858-htmlview-segfault.patch b/app-misc/mc/files/mc-4.8.4-Ticket-2858-htmlview-segfault.patch new file mode 100644 index 000000000000..748f39c6b13f --- /dev/null +++ b/app-misc/mc/files/mc-4.8.4-Ticket-2858-htmlview-segfault.patch @@ -0,0 +1,36 @@ +https://www.midnight-commander.org/ticket/2858 +https://www.midnight-commander.org/changeset/e2f30017a04b5dc557f9d8dd2e281526eba3c97f + +Index: src/filemanager/usermenu.c +=================================================================== +--- src/filemanager/usermenu.c (revision 409e8ab5fd4c42fd122d42d3d13a455eb6aba96f) ++++ src/filemanager/usermenu.c (revision e2f30017a04b5dc557f9d8dd2e281526eba3c97f) +@@ -749,6 +749,7 @@ + return g_strdup ("%"); + +- if (mc_global.mc_run_mode == MC_RUN_FULL) +- { ++ switch (mc_global.mc_run_mode) ++ { ++ case MC_RUN_FULL: + if (g_ascii_islower ((gchar) c)) + panel = current_panel; +@@ -760,9 +761,16 @@ + } + fname = g_strdup (panel->dir.list[panel->selected].fname); +- } ++ break; ++ + #ifdef USE_INTERNAL_EDIT +- else if (mc_global.mc_run_mode == MC_RUN_EDITOR) ++ case MC_RUN_EDITOR: + fname = edit_get_file_name (edit_widget); ++ break; + #endif ++ ++ default: ++ /* other modes don't use formats */ ++ return g_strdup (""); ++ } + + if (do_quote) |