diff options
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 119011791..677215d2d 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1806,10 +1806,11 @@ buflist_getfile(n, lnum, options, forceit) if (buf == curbuf) return OK; -#ifdef FEAT_CMDWIN - if (cmdwin_type != 0) + if (editing_cmdline()) + { + editing_cmdline_msg(); return FAIL; -#endif + } /* altfpos may be changed by getfile(), get it now */ if (lnum == 0) |