Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 409107
Collapse All | Expand All

(-)src/filemanager/ext.c (+3 lines)
Lines 637-640 Link Here
637
    int have_type = 0;          /* Flag used by regex_check_type() */
637
    int have_type = 0;          /* Flag used by regex_check_type() */
638
638
639
    if (filename_vpath == NULL)
640
        return 0;
641
639
    /* Check for the special View:%d parameter */
642
    /* Check for the special View:%d parameter */
640
    if (strncmp (action, "View:", 5) == 0)
643
    if (strncmp (action, "View:", 5) == 0)
(-)src/filemanager/midnight.c (-8 / +12 lines)
Lines 952-960 Link Here
952
    case MC_RUN_EDITOR:
952
    case MC_RUN_EDITOR:
953
        {
953
        {
954
            vfs_path_t *param_vpath;
954
            vfs_path_t *vpath = NULL;
955
955
956
            param_vpath = vfs_path_from_str (mc_run_param0);
956
            if (mc_run_param0 != NULL && *mc_run_param0 != '\0')
957
            ret = edit_file (param_vpath, mc_args__edit_start_line);
957
                vpath = vfs_path_from_str (mc_run_param0);
958
            vfs_path_free (param_vpath);
958
959
            ret = edit_file (vpath, mc_args__edit_start_line);
960
            vfs_path_free (vpath);
959
        }
961
        }
960
        break;
962
        break;
Lines 962-968 Link Here
962
    case MC_RUN_VIEWER:
964
    case MC_RUN_VIEWER:
963
        {
965
        {
964
            vfs_path_t *vpath;
966
            vfs_path_t *vpath = NULL;
965
967
966
            vpath = prepend_cwd_on_local (mc_run_param0);
968
            if (mc_run_param0 != NULL && *mc_run_param0 != '\0')
969
                vpath = prepend_cwd_on_local (mc_run_param0);
970
967
            view_file (vpath, 0, 1);
971
            view_file (vpath, 0, 1);
968
            vfs_path_free (vpath);
972
            vfs_path_free (vpath);

Return to bug 409107