mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-20 17:24:19 +03:00
little fix
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
parent
f3cd6377da
commit
af9cc81804
@ -343,6 +343,7 @@ mcview_execute_cmd (mcview_t * view, unsigned long command)
|
||||
break;
|
||||
case CK_ViewRunEditor:
|
||||
/* Open current file in editor */
|
||||
view->want_to_quit = TRUE;
|
||||
mcview_edit (view);
|
||||
break;
|
||||
case CK_ViewGoto:
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include "src/main.h"
|
||||
#include "src/charsets.h"
|
||||
#include "src/selcodepage.h"
|
||||
#include "src/cmd.h"
|
||||
|
||||
#include "internal.h"
|
||||
#include "mcviewer.h"
|
||||
@ -268,7 +269,7 @@ mcview_edit (mcview_t * view)
|
||||
off_t new_offset;
|
||||
|
||||
mcview_offset_to_coord (view, &line, &column, view->dpy_start);
|
||||
do_edit_at_line (view->filename, line + 1);
|
||||
do_edit_at_line (view->filename, (int) line + 1);
|
||||
canon_fname = vfs_canon (view->filename);
|
||||
load_file_position (canon_fname, &line, &column, &new_offset);
|
||||
new_offset = min (new_offset, mcview_get_filesize (view));
|
||||
|
Loading…
x
Reference in New Issue
Block a user