diff options
author | Bram Moolenaar <bram@vim.org> | 2012-03-23 15:18:24 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2012-03-23 15:18:24 +0100 |
commit | 9905e9b032e23fb850c882bbf4364d3cfd105237 (patch) | |
tree | 4135c1e76ff5cb2be3664fa804e034f569a726fc | |
parent | 14e048a77dccf320782a107440efd2b7945fdf98 (diff) | |
download | vim-9905e9b032e23fb850c882bbf4364d3cfd105237.tar.gz |
Problem: Using ":echo" to output enough lines to scroll, then using "j" and
"k" at the more prompt, displays the command on top of the output.
(Marcin Szamotulski)
Solution: Put the output below the command. (Christian Brabandt)
-rw-r--r-- | src/eval.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -20492,7 +20492,12 @@ ex_echo(eap) /* Call msg_start() after eval1(), evaluating the expression * may cause a message to appear. */ if (eap->cmdidx == CMD_echo) + { + /* Put the output below the command, makes scrolling back + * at more prompt work. */ + msg_didout = TRUE; msg_start(); + } } else if (eap->cmdidx == CMD_echo) msg_puts_attr((char_u *)" ", echo_attr); diff --git a/src/version.c b/src/version.c index f6250cda..170784c9 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 477, +/**/ 476, /**/ 475, |