diff options
-rw-r--r-- | src/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index d521d607995..e4ed37bbec1 100644 --- a/src/window.c +++ b/src/window.c @@ -214,7 +214,7 @@ POS defaults to point; WINDOW, to the selected window.") } else { - if (posint > BUF_Z (buf)) + if (posint > BUF_ZV (buf)) return Qnil; /* If that info is not correct, calculate afresh */ |