summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1448
blob: 35c3381f5cf4e104158d4ef5baadc00040151973 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1448
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.1448
Problem:    Statusline is sometimes drawn on top of popup.
Solution:   Redraw popups after the statusline. (Naruhiko Nishino,
            closes #4468)
Files:	    src/screen.c, src/testdir/test_popupwin.vim,
            src/testdir/dumps/Test_popupwin_behind.dump


*** ../vim-8.1.1447/src/screen.c	2019-06-01 22:15:10.215177111 +0200
--- src/screen.c	2019-06-02 14:09:46.617667197 +0200
***************
*** 823,829 ****
      did_intro = TRUE;
  
  #ifdef FEAT_TEXT_PROP
!     // Display popup windows on top of the others.
      update_popups();
  #endif
  
--- 823,829 ----
      did_intro = TRUE;
  
  #ifdef FEAT_TEXT_PROP
!     // Display popup windows on top of the windows.
      update_popups();
  #endif
  
***************
*** 987,992 ****
--- 987,997 ----
  	    win_redr_status(wp, FALSE);
      }
  
+ #ifdef FEAT_TEXT_PROP
+     // Display popup windows on top of the others.
+     update_popups();
+ #endif
+ 
      update_finish();
  }
  #endif
***************
*** 1211,1216 ****
--- 1216,1226 ----
  	    )
  	win_redr_status(wp, FALSE);
  
+ #ifdef FEAT_TEXT_PROP
+     // Display popup windows on top of everything.
+     update_popups();
+ #endif
+ 
      update_finish();
  }
  #endif
***************
*** 6795,6800 ****
--- 6805,6815 ----
  	    win_redr_status(wp, FALSE);
      if (redraw_tabline)
  	draw_tabline();
+ 
+ #ifdef FEAT_TEXT_PROP
+     // Display popup windows on top of the status lines.
+     update_popups();
+ #endif
  }
  
  #if defined(FEAT_WILDMENU) || defined(PROTO)
***************
*** 11101,11106 ****
--- 11116,11126 ----
      /* Redraw the tab pages line if needed. */
      if (redraw_tabline)
  	draw_tabline();
+ 
+ #ifdef FEAT_TEXT_PROP
+     // Display popup windows on top of everything.
+     update_popups();
+ #endif
  }
  
  #ifdef FEAT_CMDL_INFO
*** ../vim-8.1.1447/src/testdir/test_popupwin.vim	2019-06-02 13:22:08.372506989 +0200
--- src/testdir/test_popupwin.vim	2019-06-02 14:06:45.810620422 +0200
***************
*** 610,612 ****
--- 610,649 ----
    call assert_equal(2, pos.width)
    call assert_equal(3, pos.height)
  endfunc
+ 
+ func Test_popup_never_behind()
+   if !CanRunVimInTerminal()
+     return
+   endif
+   " +-----------------------------+
+   " |             |               |
+   " |             |               |
+   " |             |               |
+   " |            line1            |
+   " |------------line2------------|
+   " |            line3            |
+   " |            line4            |
+   " |                             |
+   " |                             |
+   " +-----------------------------+
+   let lines =<< trim END
+     only 
+     split
+     vsplit
+     let info_window1 = getwininfo()[0]
+     let line = info_window1['height']
+     let col = info_window1['width']
+     call popup_create(['line1', 'line2', 'line3', 'line4'], {
+ 	      \   'line' : line,
+ 	      \   'col' : col,
+ 	      \ })
+   END
+   call writefile(lines, 'XtestPopupBehind')
+   let buf = RunVimInTerminal('-S XtestPopupBehind', {'rows': 10})
+   call term_sendkeys(buf, "\<C-W>w")
+   call VerifyScreenDump(buf, 'Test_popupwin_behind', {})
+ 
+   " clean up
+   call StopVimInTerminal(buf)
+   call delete('XtestPopupBehind')
+ endfunc
*** ../vim-8.1.1447/src/testdir/dumps/Test_popupwin_behind.dump	2019-06-02 14:11:40.761078512 +0200
--- src/testdir/dumps/Test_popupwin_behind.dump	2019-06-02 14:09:56.249617679 +0200
***************
*** 0 ****
--- 1,10 ----
+ | +0&#ffffff0@36||+1&&> +0&&@36
+ |~+0#4040ff13&| @35||+1#0000000&|~+0#4040ff13&| @35
+ |~| @35||+1#0000000&|~+0#4040ff13&| @35
+ |~| @34|l+0#0000001#ffd7ff255|i|n|e|1| +0#4040ff13#ffffff0@33
+ |[+1#0000000&|N|o| |N|a|m|e|]| @9|0|,|0|-|1| @9|A|l|l+0#0000001#ffd7ff255|i|n|e|2| +3#0000000#ffffff0|N|a|m|e|]| @9|0|,|0|-|1| @9|A|l@1
+ | +0&&@35|l+0#0000001#ffd7ff255|i|n|e|3| +0#0000000#ffffff0@33
+ |~+0#4040ff13&| @34|l+0#0000001#ffd7ff255|i|n|e|4| +0#4040ff13#ffffff0@33
+ |~| @73
+ |[+1#0000000&|N|o| |N|a|m|e|]| @47|0|,|0|-|1| @9|A|l@1
+ |A+0&&|l|r|e|a|d|y| |o|n|l|y| |o|n|e| |w|i|n|d|o|w| @51
*** ../vim-8.1.1447/src/version.c	2019-06-02 13:22:08.372506989 +0200
--- src/version.c	2019-06-02 13:51:03.867557478 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1448,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
90. Instead of calling you to dinner, your spouse sends e-mail.

 /// 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    ///