diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-20 12:45:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-20 12:45:15 +0100 |
commit | bdedd2bcce3a59028c7504a397ff77d901b1b12a (patch) | |
tree | d9786a098da5bb06ad6aa9ea6aff8531abd81efe /src/message.c | |
parent | 7c046ae99ba85a4fdf1a546157e2ed6f12b79ea6 (diff) |
patch 9.0.0511: unnecessary scrolling for message of only one linev9.0.0511
Problem: Unnecessary scrolling for message of only one line.
Solution: Only set msg_scroll when needed. (closes #11178)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c index 57197c1a83..9c35543031 100644 --- a/src/message.c +++ b/src/message.c @@ -535,11 +535,11 @@ msg_source(int attr) return; recursive = TRUE; - msg_scroll = TRUE; // this will take more than one line ++no_wait_return; p = get_emsg_source(); if (p != NULL) { + msg_scroll = TRUE; // this will take more than one line msg_attr((char *)p, attr); vim_free(p); } @@ -767,8 +767,8 @@ emsg_core(char_u *s) #endif /* * Display name and line number for the source of the error. - * Sets "msg_scroll". */ + msg_scroll = TRUE; msg_source(attr); /* |