summaryrefslogtreecommitdiffstats
path: root/src/filepath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/filepath.c')
-rw-r--r--src/filepath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c
index eb5b8e0502..add74b4707 100644
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -1796,7 +1796,7 @@ read_file_or_blob(typval_T *argvars, typval_T *rettv, int always_blob)
p < buf + readlen || (readlen <= 0 && (prevlen > 0 || binary));
++p)
{
- if (*p == '\n' || readlen <= 0)
+ if (readlen <= 0 || *p == '\n')
{
listitem_T *li;
char_u *s = NULL;