Mercurial > vim
changeset 14366:1c79c92a642e v8.1.0198
patch 8.1.0198: there is no hint that syntax is disabled for 'redrawtime'
commit https://github.com/vim/vim/commit/0a6efcd27d62935c465b4406c0c0db9be10a0ddb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 20 19:56:10 2018 +0200
patch 8.1.0198: there is no hint that syntax is disabled for 'redrawtime'
Problem: There is no hint that syntax is disabled for 'redrawtime'.
Solution: Add a message.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 20 Jul 2018 20:00:06 +0200 |
parents | e8c4114adecb |
children | ce0cc90c253e |
files | src/syntax.c src/version.c |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/syntax.c +++ b/src/syntax.c @@ -3355,8 +3355,11 @@ syn_regexec( } #endif #ifdef FEAT_RELTIME - if (timed_out) + if (timed_out && !syn_win->w_s->b_syn_slow) + { syn_win->w_s->b_syn_slow = TRUE; + MSG(_("'redrawtime' exceeded, syntax highlighting disabled")); + } #endif if (r > 0) @@ -3575,11 +3578,13 @@ syn_cmd_iskeyword(exarg_T *eap, int sync if (*arg == NUL) { MSG_PUTS("\n"); - MSG_PUTS(_("syntax iskeyword ")); if (curwin->w_s->b_syn_isk != empty_option) + { + MSG_PUTS(_("syntax iskeyword ")); msg_outtrans(curwin->w_s->b_syn_isk); + } else - msg_outtrans((char_u *)"not set"); + msg_outtrans((char_u *)_("syntax iskeyword not set")); } else {