summaryrefslogtreecommitdiff
blob: 32c599ee7f019f5db21923ec699421325f616134 (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
To: vim-dev@vim.org
Subject: Patch 6.0.045
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------

Patch 6.0.045
Problem:    After creating a fold with a Visual selection, another window
	    with the same buffer still has inverted text. (Sami Salonen)
Solution:   Redraw the inverted text.
Files:	    src/normal.c


*** ../vim60.44/src/normal.c	Tue Oct 23 16:54:23 2001
--- src/normal.c	Wed Oct 31 11:51:54 2001
***************
*** 1633,1641 ****
  				&& vim_strchr(p_cpo, CPO_EMPTYREGION) != NULL);
  
  #ifdef FEAT_VISUAL
! 	/* Force a redraw when operating on an empty Visual region or when
! 	 * 'modifiable is off. */
! 	if (oap->is_VIsual && (oap->empty || !curbuf->b_p_ma))
  	    redraw_curbuf_later(INVERTED);
  #endif
  
--- 1632,1644 ----
  				&& vim_strchr(p_cpo, CPO_EMPTYREGION) != NULL);
  
  #ifdef FEAT_VISUAL
! 	/* Force a redraw when operating on an empty Visual region, when
! 	 * 'modifiable is off or creating a fold. */
! 	if (oap->is_VIsual && (oap->empty || !curbuf->b_p_ma
! # ifdef FEAT_FOLDING
! 		    || oap->op_type == OP_FOLD
! # endif
! 		    ))
  	    redraw_curbuf_later(INVERTED);
  #endif
  
*** ../vim60.44/src/version.c	Wed Oct 31 11:17:27 2001
--- src/version.c	Wed Oct 31 11:54:20 2001
***************
*** 608,609 ****
--- 608,611 ----
  {   /* Add new patch number below this line */
+ /**/
+     45,
  /**/

-- 
Why don't cannibals eat clowns?
Because they taste funny.

 ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
(((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
 \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///