diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-24 23:36:56 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-24 23:40:18 -0400 |
commit | e7901301d3bb118fb0e737c9a037ec13e97bc999 (patch) | |
tree | cbf17847146236db1236776a95a2b1fee2469dd3 /src | |
parent | dfd050867b92718ff025fffe81a581b1da1511ae (diff) | |
download | rneovim-e7901301d3bb118fb0e737c9a037ec13e97bc999.tar.gz rneovim-e7901301d3bb118fb0e737c9a037ec13e97bc999.tar.bz2 rneovim-e7901301d3bb118fb0e737c9a037ec13e97bc999.zip |
vim-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.
https://github.com/vim/vim/commit/0a6efcd27d62935c465b4406c0c0db9be10a0ddb
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/syntax.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 4d3003a1fa..38d0e33948 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -2922,8 +2922,9 @@ static int syn_regexec(regmmatch_T *rmp, linenr_T lnum, colnr_T col, syn_time_T if (r > 0) ++st->match; } - 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")); } if (r > 0) { @@ -3123,11 +3124,11 @@ static void syn_cmd_iskeyword(exarg_T *eap, int syncing) arg = skipwhite(arg); 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 { if (STRNICMP(arg, "clear", 5) == 0) { |