Skip to content

Instantly share code, notes, and snippets.

@splhack
Created October 9, 2015 15:59
Show Gist options
  • Select an option

  • Save splhack/3e4f6981b4ff73284442 to your computer and use it in GitHub Desktop.

Select an option

Save splhack/3e4f6981b4ff73284442 to your computer and use it in GitHub Desktop.
diff --git a/src/fileio.c b/src/fileio.c
index 45804e3..71d6fea 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1263,6 +1263,7 @@ retry:
}
}
+# ifdef FEAT_EVAL
/*
* Try to guess encoding of the file.
*/
@@ -1271,6 +1272,7 @@ retry:
if (guess_encode(&fenc, &fenc_alloced, fname) != 0)
set_internal_string_var("b:x_guessed_fileencoding", fenc);
}
+# endif
/*
* Conversion may be required when the encoding of the file is different
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment