comparison src/testdir/test_popupwin.vim @ 18432:ee8db42dacf6 v8.1.2210

patch 8.1.2210: using negative offset for popup_create() does not work Commit: https://github.com/vim/vim/commit/b754b5bf6d9ac1f3654552973aa6f9c11239af3d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 24 19:25:00 2019 +0200 patch 8.1.2210: using negative offset for popup_create() does not work Problem: Using negative offset for popup_create() does not work. Solution: Use -1 instead of zero. (closes https://github.com/vim/vim/issues/5111)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Oct 2019 19:30:03 +0200
parents 21c25bee9df8
children 41a5f241e9d5
comparison
equal deleted inserted replaced
18431:412a997e6ea9 18432:ee8db42dacf6
276 \ col: 'cursor', 276 \ col: 'cursor',
277 \ pos: 'topleft', 277 \ pos: 'topleft',
278 \ border: [], 278 \ border: [],
279 \ padding: [], 279 \ padding: [],
280 \ }) 280 \ })
281 normal 25|r@ 281 normal 24|r@
282 let winid1 = popup_create(['First', 'SeconD'], #{ 282 let winid1 = popup_create(['First', 'SeconD'], #{
283 \ line: 'cursor+1', 283 \ line: 'cursor+1',
284 \ col: 'cursor', 284 \ col: 'cursor',
285 \ pos: 'topright', 285 \ pos: 'topright',
286 \ border: [], 286 \ border: [],
287 \ padding: [], 287 \ padding: [],
288 \ }) 288 \ })
289 normal 9G29|r% 289 normal 9G27|r%
290 let winid1 = popup_create(['fiRSt', 'seCOnd'], #{ 290 let winid1 = popup_create(['fiRSt', 'seCOnd'], #{
291 \ line: 'cursor-1', 291 \ line: 'cursor-1',
292 \ col: 'cursor', 292 \ col: 'cursor',
293 \ pos: 'botleft', 293 \ pos: 'botleft',
294 \ border: [], 294 \ border: [],
295 \ padding: [], 295 \ padding: [],
296 \ }) 296 \ })
297 normal 51|r& 297 normal 48|r&
298 let winid1 = popup_create(['FIrsT', 'SEcoND'], #{ 298 let winid1 = popup_create(['FIrsT', 'SEcoND'], #{
299 \ line: 'cursor-1', 299 \ line: 'cursor-1',
300 \ col: 'cursor', 300 \ col: 'cursor',
301 \ pos: 'botright', 301 \ pos: 'botright',
302 \ border: [],
303 \ padding: [],
304 \ })
305 normal 1G51|r*
306 let winid1 = popup_create(['one', 'two'], #{
307 \ line: 'cursor-1',
308 \ col: 'cursor',
309 \ pos: 'botleft',
302 \ border: [], 310 \ border: [],
303 \ padding: [], 311 \ padding: [],
304 \ }) 312 \ })
305 END 313 END
306 call writefile(lines, 'XtestPopupCorners') 314 call writefile(lines, 'XtestPopupCorners')