summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0198
blob: 0cac7b1468c6ccc4d133978d6761136bb0b290fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0198
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0198
Problem:    There is no hint that syntax is disabled for 'redrawtime'.
Solution:   Add a message.
Files:      src/syntax.c


*** ../vim-8.1.0197/src/syntax.c	2018-06-23 14:21:38.459484976 +0200
--- src/syntax.c	2018-07-20 19:54:46.527523073 +0200
***************
*** 3355,3362 ****
      }
  #endif
  #ifdef FEAT_RELTIME
!     if (timed_out)
  	syn_win->w_s->b_syn_slow = TRUE;
  #endif
  
      if (r > 0)
--- 3355,3365 ----
      }
  #endif
  #ifdef FEAT_RELTIME
!     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,3585 ****
      if (*arg == NUL)
      {
  	MSG_PUTS("\n");
- 	MSG_PUTS(_("syntax iskeyword "));
  	if (curwin->w_s->b_syn_isk != empty_option)
  	    msg_outtrans(curwin->w_s->b_syn_isk);
  	else
! 	    msg_outtrans((char_u *)"not set");
      }
      else
      {
--- 3578,3590 ----
      if (*arg == NUL)
      {
  	MSG_PUTS("\n");
  	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 *)_("syntax iskeyword not set"));
      }
      else
      {
*** ../vim-8.1.0197/src/version.c	2018-07-20 05:03:10.565146691 +0200
--- src/version.c	2018-07-20 19:49:51.905211855 +0200
***************
*** 791,792 ****
--- 791,794 ----
  {   /* Add new patch number below this line */
+ /**/
+     198,
  /**/

-- 
    A KNIGHT rides into shot and hacks him to the ground.  He rides off.
    We stay for a moment on the glade.  A MIDDLE-AGED LADY in a C. & A.
    twin-set emerges from the trees and looks in horror at the body of her
    HUSBAND.
MRS HISTORIAN: FRANK!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///