mirror of https://github.com/MidnightCommander/mc
(edit_insert_file): change variable type from int to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
719422746a
commit
433f792b53
|
@ -2020,7 +2020,7 @@ edit_insert_file (WEdit * edit, const vfs_path_t * filename_vpath)
|
|||
{
|
||||
int file;
|
||||
off_t blocklen;
|
||||
int vertical_insertion = 0;
|
||||
gboolean vertical_insertion = FALSE;
|
||||
char *buf;
|
||||
|
||||
file = mc_open (filename_vpath, O_RDONLY | O_BINARY);
|
||||
|
@ -2033,7 +2033,7 @@ edit_insert_file (WEdit * edit, const vfs_path_t * filename_vpath)
|
|||
{
|
||||
/* if contain signature VERTICAL_MAGIC then it vertical block */
|
||||
if (memcmp (buf, VERTICAL_MAGIC, sizeof (VERTICAL_MAGIC)) == 0)
|
||||
vertical_insertion = 1;
|
||||
vertical_insertion = TRUE;
|
||||
else
|
||||
mc_lseek (file, 0, SEEK_SET);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue