summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c
index f54a970cc..119861e5d 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -2606,6 +2606,7 @@ ml_get_buf(
bhdr_T *hp;
DATA_BL *dp;
static int recursive = 0;
+ static char_u questions[4];
if (lnum > buf->b_ml.ml_line_count) // invalid line number
{
@@ -2618,9 +2619,9 @@ ml_get_buf(
--recursive;
}
errorret:
- STRCPY(IObuff, "???");
+ STRCPY(questions, "???");
buf->b_ml.ml_line_len = 4;
- return IObuff;
+ return questions;
}
if (lnum <= 0) // pretend line 0 is line 1
lnum = 1;