summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_popupwin.vim
AgeCommit message (Collapse)Author
2024-01-16patch 9.1.0034: Window scrolls unexpectedly when 'scrollbind' is setv9.1.0034Christian Brabandt
Problem: Window may unexpectedly scroll when 'scrollbind' is set and setting a buffer-local option using setbufvar() (Boris Staletic) Solution: Save and restore the windows topline before opening the popup window. fixes: #13863 closes: #13869 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-12-21patch 9.0.2183: Maximum callback depth is not configurablev9.0.2183zeertzjq
Problem: Maximum callback depth is not configurable. Solution: Revert patch 9.0.2103. Set 'maxfuncdepth' in test. (zeertzjq) fixes: #13732 closes: #13736 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-15patch 9.0.2032: cannot get mouse click pos for tab or virt textv9.0.2032zeertzjq
Problem: Cannot accurately get mouse clicking position when clicking on a TAB or with virtual text. Solution: Add a "coladd" field to getmousepos() result. closes: #13335 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-10-15patch 9.0.2030: no max callback recursion limitv9.0.2030Christian Brabandt
Problem: no max callback recursion limit Solution: bail out, if max call recursion for callback functions has been reached. This checks the 'maxfuncdepth' setting and throws E169 when a callback function recursively calls itself. closes: #13337 closes: #13339 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-13patch 9.0.1707: Cannot wrap around in popup_filter_menu()v9.0.1707Christian Brabandt
Problem: Cannot wrap around in popup_filter_menu() Solution: Allow to wrap around by default Currently, it is not possible, to wrap around at the end of the list using e.g. down (and go back to the top) or up at the beginning of the list and go directly to the last item. This is not consistent behaviour with e.g. how the pum-menu currently works, so let's just allow this. Also adjust tests about it. closes: #12689 closes: #12693 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-11patch 9.0.1690: popup_create() not aborting on errorsv9.0.1690Christian Brabandt
Problem: popup_create() not aborting on errors Solution: check for errors in arguments given and abort if an error occurred closes: #12711 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-01-28patch 9.0.1258: code style test failsv9.0.1258Bram Moolenaar
Problem: Code style test fails. Solution: Adjust test files.
2022-12-02patch 9.0.0989: popupwin test is more flaky on MacOSv9.0.0989Bram Moolenaar
Problem: Popupwin test is more flaky on MacOS. Solution: Use a longer wait time.
2022-11-27patch 9.0.0956: terminal tests fail when using key with modifierv9.0.0956Bram Moolenaar
Problem: Terminal tests fail when using key with modifier. Solution: Use the modifyOtherKeys encoding when using RunVimInTerminal().
2022-11-02patch 9.0.0828: various typosv9.0.0828dundargoc
Problem: Various typos. Solution: Correct typos. (closes #11432)
2022-10-02patch 9.0.0638: popup menu highlight wrong on top of preview popupv9.0.0638Bram Moolenaar
Problem: Popup menu highlight wrong on top of preview popup. (Yegappan Lakshmanan) Solution: Also check for the popup menu in screen_line().
2022-09-30patch 9.0.0631: too many delete() calls in testsv9.0.0631Bram Moolenaar
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
2022-09-08patch 9.0.0416: ml_get error when appending lines in popup windowv9.0.0416Bram Moolenaar
Problem: ml_get error when appending lines in popup window. Solution: Only update w_topline when w_buffer matches curbuf. (closes #11074)
2022-09-02patch 9.0.0363: common names in test files causes tests to be flakyv9.0.0363Bram Moolenaar
Problem: Common names in test files causes tests to be flaky. Solution: Use more specific names.
2022-08-30patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan
Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
2022-05-30patch 8.2.5045: can escape a terminal popup window when the job is finishedv8.2.5045Bram Moolenaar
Problem: Can escape a terminal popup window when the job is finished. Solution: Only check for a finished job where it is relevant. (closes #10253)
2022-05-30patch 8.2.5042: scrollbar thumb in tall scrolled popup not visiblev8.2.5042Bram Moolenaar
Problem: Scrollbar thumb in tall scrolled popup not visible. Solution: Show at least one thumb character. (fixes 10492)
2022-05-29patch 8.2.5041: cannot close a terminal popup with "NONE" jobv8.2.5041Bram Moolenaar
Problem: Cannot close a terminal popup with "NONE" job. Solution: Adjust the conditions for whether a job is running. (closes #10498)
2022-05-29patch 8.2.5040: scrollbar thumb in scrolled popup not visiblev8.2.5040Bram Moolenaar
Problem: Scrollbar thumb in scrolled popup not visible. Solution: Show at least one thumb character. (fixes 10492)
2022-05-29patch 8.2.5039: confusing error if first argument of popup_create() is wrongv8.2.5039Bram Moolenaar
Problem: Confusing error if first argument of popup_create() is wrong. Solution: Give a more informative error.
2022-05-29patch 8.2.5038: a finished terminal in a popup window does not show scrollbarv8.2.5038Bram Moolenaar
Problem: A finished terminal in a popup window does not show a scrollbar. Solution: Show the scrollbar if the terminal job is finished. (closes #10497)
2022-05-08patch 8.2.4913: popup_hide() does not always have effectv8.2.4913Bram Moolenaar
Problem: Popup_hide() does not always have effect. Solution: Add the POPF_HIDDEN_FORCE flag. (closes #10376)
2022-04-20patch 8.2.4799: popup does not use correct toplinev8.2.4799LemonBoy
Problem: Popup does not use correct topline. Solution: Also add one when firstline is negative. (closes #10229)
2022-04-04patch 8.2.4685: when a swap file is found for a popup there is no dialogv8.2.4685Bram Moolenaar
Problem: When a swap file is found for a popup there is no dialog and the buffer is loaded anyway. Solution: Silently load the buffer read-only. (closes #10073)
2022-04-02patch 8.2.4665: popup with "minwidth" and scrollbar not updated properlyv8.2.4665Bram Moolenaar
Problem: Popup with "minwidth" and scrollbar not updated properly. Solution: Adjust the computation if the window width. (closes #10061)
2022-01-30patch 8.2.4260: Vim9: can still use a global function without g:v8.2.4260Bram Moolenaar
Problem: Vim9: can still use a global function without g: at the script level. Solution: Also check for g: at the script level. (issue #9637)
2022-01-29patch 8.2.4257: Vim9: finding global function without g: prefix inconsistentv8.2.4257Bram Moolenaar
Problem: Vim9: finding global function without g: prefix but not finding global variable is inconsistent. Solution: Require using g: for a global function. Change the vim9.vim script into a Vim9 script with exports. Fix that import in legacy script does not work.
2021-11-29patch 8.2.3697: cannot drag a popup without a borderv8.2.3697Bram Moolenaar
Problem: Cannot drag a popup without a border. Solution: Add the "dragall" option. (closes #9218)
2021-11-26patch 8.2.3681: cannot drag popup window after click on a status linev8.2.3681Bram Moolenaar
Problem: Cannot drag popup window after click on a status line. (Sergey Vlasov) Solution: Reset on_status_line. (closes #9221)
2021-11-17patch 8.2.3614: zindex of popup windows not used when redrawing popup menuv8.2.3614Bakudankun
Problem: zindex of popup windows not used when redrawing popup menu. Solution: Check the zindex when redrawing the popup menu. (closes #9129, closes #9089)
2021-08-07patch 8.2.3304: popup window title with wide characters is truncatedv8.2.3304rbtnn
Problem: Popup window title with wide characters is truncated. Solution: Use vim_strsize() instead of MB_CHARLEN(). (Naruhiko Nishino, closes #8721)
2021-07-04patch 8.2.3098: popup window test is flaky on MS-Windows with GUIv8.2.3098Bram Moolenaar
Problem: Popup window test is flaky on MS-Windows with GUI. Solution: Skip the check in this situation.
2021-07-03patch 8.2.3094: Test_popup_atcursor_pos() fails without the conceal featurev8.2.3094Dominique Pelle
Problem: Test_popup_atcursor_pos() fails without the conceal feature. Solution: Add a check for the conceal feature. (Dominique Pellé, closes #8505)
2021-06-29patch 8.2.3074: popup_atcursor() uses wrong position with concealingv8.2.3074Bram Moolenaar
Problem: popup_atcursor() uses wrong position with concealing. Solution: Keep w_wcol in conceal_check_cursor_line(). (closes #8476)
2021-06-22patch 8.2.3036: Vim9: builtin function arguments not checked at compile timev8.2.3036Yegappan Lakshmanan
Problem: Vim9: builtin function arguments not checked at compile time. Solution: Add more argument type specs. Check arguments to test_setmouse() and test_gui_mouse_event(). (Yegappan Lakshmanan, closes #8425)
2021-06-12patch 8.2.2980: popup window test is a bit flakyv8.2.2980Bram Moolenaar
Problem: Popup window test is a bit flaky. Solution: Add a redraw command.
2021-06-10patch 8.2.2972: "%bd" tries to delete popup window buffers, which failsv8.2.2972Bram Moolenaar
Problem: "%bd" tries to delete popup window buffers, which fails. (Ralf Schandl) Solution: Do not try to delete a popup window buffer. (closes #8349)
2021-05-28patch 8.2.2893: multi-byte text in popup title shows up wrongv8.2.2893Ralf Schandl
Problem: Multi-byte text in popup title shows up wrong. Solution: Use the character width instead of the byte length. (Ralf Schandl, closes #8267, closes #8264)
2021-03-04patch 8.2.2568: second time a preview popup is opened highlight is not setv8.2.2568Bram Moolenaar
Problem: Second time a preview popup is opened highlight is not set. (Gabriel Dupras) Solution: Apply 'previewpopup' after getting the file. (closes #7928)
2021-02-21patch 8.2.2541: popup_create() does not allow boolean for "cursorline"v8.2.2541Bram Moolenaar
Problem: Popup_create() does not allow boolean for "cursorline". Solution: Use dict_get_bool(). (issue #7869)
2021-02-13patch 8.2.2510: internal error when popup with mask is zero height or widthv8.2.2510Bram Moolenaar
Problem: Internal error when popup with mask is zero height or width. Solution: Bail out if width or height is zero. (closes #7831)
2021-02-10patch 8.2.2491: popup window for text property may show in first screen linev8.2.2491Bram Moolenaar
Problem: Popup window for text property may show in first screen line. Solution: If the text position is invisible do not show the popup window. (closes #7807)
2021-02-06patch 8.2.2471: popup_setoptions() does not set textprop in other tabv8.2.2471Bram Moolenaar
Problem: Popup_setoptions() does not set textprop in other tab. Solution: use win_valid_any_tab(). (closes #7788)
2021-02-06patch 8.2.2470: popup_getoptions() does not get textprop from other tabv8.2.2470Bram Moolenaar
Problem: Popup_getoptions() does not get textprop from other tab. Solution: use win_valid_any_tab(). (closes #7786)
2021-01-04patch 8.2.2296: cannot use CTRL-N and CTRL-P in a popup menuv8.2.2296Bram Moolenaar
Problem: Cannot use CTRL-N and CTRL-P in a popup menu. Solution: Use CTRL-N like <Down> and CTRL-P like <Up>. (closes #7614)
2020-12-29patch 8.2.2243: crash when popup mask contains zeroesv8.2.2243Bram Moolenaar
Problem: Crash when popup mask contains zeroes. Solution: Check boundaries properly. (closes #7569)
2020-12-18patch 8.2.2160: various typosv8.2.2160Bram Moolenaar
Problem: Various typos. Solution: Fix spelling mistakes. (closes #7494)
2020-12-17patch 8.2.2154: popupwin test for terminal buffer fails sometimesv8.2.2154Bram Moolenaar
Problem: Popupwin test for terminal buffer fails sometimes. Solution: Wait for the prompt to appear.
2020-12-17patch 8.2.2153: popupwin test for latin1 still fails sometimesv8.2.2153Bram Moolenaar
Problem: Popupwin test for latin1 still fails sometimes. Solution: Wait for the "cat" command to finish.
2020-12-17patch 8.2.2149: popupwin test for latin1 sometimes failsv8.2.2149Bram Moolenaar
Problem: Popupwin test for latin1 sometimes fails. Solution: Wait for the script to finish.