Merge branch '1550_add_forgotten_include'
* 1550_add_forgotten_include: code clean up Add forgotten '#include <stdio.h>' into src/viewer/internal.h for recognize FILE type.
Этот коммит содержится в:
Коммит
eb35e00f09
@ -519,7 +519,7 @@ mcview_moveto_line_cmd (mcview_t * view)
|
|||||||
|
|
||||||
g_snprintf (prompt, sizeof (prompt),
|
g_snprintf (prompt, sizeof (prompt),
|
||||||
_(" The current line number is %lld.\n"
|
_(" The current line number is %lld.\n"
|
||||||
" Enter the new line number:"), (line + 1), "");
|
" Enter the new line number:"), (line + 1));
|
||||||
answer = input_dialog (_(" Goto line "), prompt, MC_HISTORY_VIEW_GOTO_LINE, "");
|
answer = input_dialog (_(" Goto line "), prompt, MC_HISTORY_VIEW_GOTO_LINE, "");
|
||||||
if (answer != NULL && answer[0] != '\0') {
|
if (answer != NULL && answer[0] != '\0') {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#define MC_VIEWER_INTERNAL_H
|
#define MC_VIEWER_INTERNAL_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "../src/global.h"
|
#include "../src/global.h"
|
||||||
|
@ -275,7 +275,6 @@ mcview_load (mcview_t * view, const char *command, const char *file, int start_l
|
|||||||
int i, type;
|
int i, type;
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
char tmp[BUF_MEDIUM];
|
char tmp[BUF_MEDIUM];
|
||||||
const char *enc;
|
|
||||||
char *canon_fname;
|
char *canon_fname;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
#ifdef HAVE_CHARSET
|
#ifdef HAVE_CHARSET
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user