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); |