summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_popup.vim
AgeCommit message (Collapse)Author
4 dayspatch 9.1.0690: cannot set special highlight kind in popupmenuv9.1.0690glepnir
Problem: cannot set special highlight kind in popupmenu Solution: add kind_hlgroup item to complete function (glepnir) closes: #15561 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-27patch 9.1.0631: wrong completion list displayed with non-existing dir + ↵v9.1.0631glepnir
fuzzy completion Problem: wrong completion list displayed with non-existing dir + fuzzy completion (kawarimidoll) Solution: clear list of matches, if leader did not use fuzzy match (glepnir) fixes: #15357 closes: #15365 Signed-off-by: glepnir <glephunter@gmail.com>
2024-07-27patch 9.1.0629: Rename of pum hl_group is incompletev9.1.0629zeertzjq
Problem: Rename of pum hl_group is incomplete in source. Solution: Also rename the test function. Rename to user_hlattr in code to avoid confusion with pum_extra. Add test with matched text highlighting (zeertzjq). closes: #15348 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-26patch 9.1.0619: tests: test_popup failsv9.1.0619glepnir
Problem: tests: test_popup fails (after v9.1.0618) Solution: Correct test, move combining extra attributes to pum_compute_text_attrs() (glepnir) closes: #15353 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-25patch 9.1.0618: cannot mark deprecated attributes in completion menuv9.1.0618glepnir
Problem: cannot mark deprecated attributes in completion menu Solution: add hl_group to the Dictionary of supported completion fields (glepnir) closes: #15314 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-06patch 9.1.0534: completion wrong with fuzzy when cycling back to originalv9.1.0534glepnir
Problem: completion wrong with fuzzy when cycling back to original (Quan Nguyen) Solution: reset show_match_ok when cp_score is zero (glepnir) fixes: #15095 closes: #15105 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17patch 9.1.0496: matched text is highlighted case-sensitivelyv9.1.0496glepnir
Problem: matched text is highlighted case-sensitively Solution: use MB_STRNICMP, update highlighting when the base changes (glepnir) fixes: #15021 closes: #15023 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16patch 9.1.0494: Wrong matched text highlighted in pum with 'rightleft'v9.1.0494zeertzjq
Problem: Wrong matched text highlighted in pum with 'rightleft'. Solution: Match using the original text instead of the reversed text. (zeertzjq) closes: #15020 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15patch 9.1.0491: Cmdline pum doesn't work properly with 'rightleft'v9.1.0491zeertzjq
Problem: Cmdline pum doesn't work properly with 'rightleft'. Solution: Don't use curwin->w_p_rl in cmdline mode in pum_redraw(). Use a static variable since pum_may_redraw() may be called in any mode. Also correct position of other popups with 'rightleft'. (zeertzjq) closes: #15005 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-14patch 9.1.0485: Matched text shouldn't be highlighted in "kind" and "menu"v9.1.0485zeertzjq
Problem: Matched text shouldn't be highlighted in "kind" and "menu". Solution: Pass hlf_T instead of the attribute. Fix indent. (zeertzjq) closes: #14996 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-11patch 9.1.0476: Cannot see matched text in popup menuv9.1.0476glepnir
Problem: Cannot see matched text in popup menu Solution: Introduce 2 new highlighting groups: PmenuMatch and PmenuMatchSel (glepnir) ping @habamax, @neutaaaaan @romainl because vim/colorschemes may need some updates, @lifepillar for updating vim-colortemplate closes: #14694 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-27patch 9.1.0447: completion may be wrong when deleting all charsv9.1.0447glepnir
Problem: completion may be wrong when deleting all chars Solution: reset compl_shown_match closes: #14854 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-11patch 9.1.0098: CompletionChanged not triggered when new leader added ↵v9.1.0098glepnir
without matches Problem: CompletionChanged not triggered when new leader added causing no matching item in the completion menu Solution: When completion is active but no items matched still trigger CompletChanged event (glepnir) closes: #13982 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-03patch 9.1.0075: insert completion not correct when adding new leaderv9.1.0075glepnir
Problem: insert completion not correct when adding new leader Solution: Reset compl_curr_match to compl_shown_match (glepnir) closes: #13957 Co-authored-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-04-27patch 9.0.1493: popup menu position wrong in window with toolbarv9.0.1493zeertzjq
Problem: Popup menu position wrong in window with toolbar. Solution: Take the window toolbar into account when positioning the popup menu. (closes #12308)
2023-03-10patch 9.0.1397: highlight for popupmenu kind and extra cannot be setv9.0.1397Gianmaria Bajo
Problem: Highlight for popupmenu kind and extra cannot be set. Solution: Add PmenuKind, PmenuKindSel, PmenuExtra and PmenuExtraSel highlight groups and use them. (Gianmaria Bajo, closes #12114)
2023-01-28patch 9.0.1257: code style is not check in test scriptsv9.0.1257Bram Moolenaar
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
2022-11-12patch 9.0.0866: no test for what patch 8.2.2207 fixesv9.0.0866zeertzjq
Problem: No test for what patch 8.2.2207 fixes. Solution: Add a test case. (closes #11531)
2022-10-06patch 9.0.0678: using exclamation marks on :functionv9.0.0678Bram Moolenaar
Problem: Using exclamation marks on :function. Solution: Use :func and :endfunc as usual.
2022-09-29patch 9.0.0625: too many delete() calls in testsv9.0.0625Bram Moolenaar
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
2022-07-26patch 9.0.0076: no test for what patch 8.1.1424 fixesv9.0.0076zeertzjq
Problem: No test for what patch 8.1.1424 fixes. Solution: Add a test. (closes #10789)
2022-06-21patch 8.2.5143: some tests fail when using valgrindv8.2.5143Bram Moolenaar
Problem: Some tests fail when using valgrind. Spurious leak reports. Solution: Use WaitForAssert(). Avoid failing fork/exec. Skip tests where a job is killed when running valgrind.
2022-05-27patch 8.2.5029: "textlock" is always zerov8.2.5029zeertzjq
Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes #10489)
2022-04-30patch 8.2.4848: local completion with mappings and simplification not workingv8.2.4848zeertzjq
Problem: Local completion with mappings and simplification not working. Solution: Fix local completion <C-N>/<C-P> mappings not ignored if keys are not simplified. (closes #10323)
2022-02-10patch 8.2.4339: CTRL-A does not work properly with the cmdline popup menuv8.2.4339Yegappan Lakshmanan
Problem: CTRL-A does not work properly with the cmdline popup menu. Solution: Fix issues with CTRL-A. Add more tests for the cmdline popup menu. Remove TermWait() before VeriryScreenDump(). Refactor the cmdline popup code. (Yegappan Lakshmanan, closes #9735)
2021-10-16patch 8.2.3518: Test_xrestore sometimes failsv8.2.3518Bram Moolenaar
Problem: Test_xrestore sometimes fails. Solution: Mark the test as flayky. Move marking test as flaky to the test instead of listing them in runtest.
2021-10-03patch 8.2.3465: cannot detect insert scroll modev8.2.3465zeertzjq
Problem: Cannot detect insert scroll mode. Solution: Add "scroll" to complete_info(). (closes #8943)
2021-06-04patch 8.2.2937: popup test fails if rightleft feature not enabledv8.2.2937Dominique Pelle
Problem: Popup test fails if rightleft feature not enabled. Solution: Check that the rightleft feature is available. (Dominique Pellé, closes #8321)
2021-05-22patch 8.2.2877: insufficient tests for popup menu rightleftv8.2.2877Yegappan Lakshmanan
Problem: Insufficient tests for popup menu rightleft. Solution: Add tests. (Yegappan Lakshmanan, closes #8235)
2021-01-29patch 8.2.2427: can still switch windows for 'completefunc'v8.2.2427Bram Moolenaar
Problem: Can still switch windows for 'completefunc'. Solution: Also disallow switching windows for other completions.
2021-01-29patch 8.2.2426: allowing 'completefunc' to switch windows causes troublev8.2.2426Bram Moolenaar
Problem: Allowing 'completefunc' to switch windows causes trouble. Solution: use "textwinlock" instead of "textlock".
2020-12-24patch 8.2.2207: illegal memory access if popup menu items are changedv8.2.2207Bram Moolenaar
Problem: Illegal memory access if popup menu items are changed while the menu is visible. (Tomáš Janoušek) Solution: Make a copy of the text. (closes #7537)
2020-10-28patch 8.2.1919: assert_fails() setting emsg_silent changes normal executionv8.2.1919Bram Moolenaar
Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails.
2020-07-11patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar
Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
2020-04-30patch 8.2.0670: cannot change window when evaluating 'completefunc'v8.2.0670Bram Moolenaar
Problem: Cannot change window when evaluating 'completefunc'. Solution: Make a difference between not changing text or buffers and also not changing window.
2020-04-21patch 8.2.0614: get ml_get error when deleting a line in 'completefunc'v8.2.0614Bram Moolenaar
Problem: Get ml_get error when deleting a line in 'completefunc'. (Yegappan Lakshmanan) Solution: Lock the text while evaluating 'completefunc'.
2020-04-08patch 8.2.0533: tests using term_wait() can still be flakyv8.2.0533Bram Moolenaar
Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes #5899) Halve the initial times to make tests run faster when there is no rerun.
2020-03-27patch 8.2.0462: previewwindow test fails on some systemsv8.2.0462Bram Moolenaar
Problem: Previewwindow test fails on some systems. (James McCoy) Solution: Wait a bit after sending the "o". (closes #5849)
2020-03-15patch 8.2.0385: menu functionality insufficiently testedv8.2.0385Bram Moolenaar
Problem: Menu functionality insufficiently tested. Solution: Add tests. Add menu_info(). (Yegappan Lakshmanan, closes #5760)
2019-12-01patch 8.1.2373: cannot build with +popupwin but without +quickfixv8.1.2373Bram Moolenaar
Problem: Cannot build with +popupwin but without +quickfix. (John Marriott) Solution: Adjust #ifdefs.
2019-11-21patch 8.1.2325: crash when using balloon with empty linev8.1.2325Bram Moolenaar
Problem: Crash when using balloon with empty line. Solution: Handle empty lines. (Markus Braun)
2019-08-23patch 8.1.1915: more functions can be used as methodsv8.1.1915Bram Moolenaar
Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
2019-08-18patch 8.1.1888: more functions can be used as methodsv8.1.1888Bram Moolenaar
Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
2019-08-17patch 8.1.1875: cannot get size and position of the popup menuv8.1.1875Bram Moolenaar
Problem: Cannot get size and position of the popup menu. Solution: Add pum_getpos(). (Ben Jackson, closes #4827)
2019-08-07patch 8.1.1826: tests use hand coded feature and option checksv8.1.1826Bram Moolenaar
Problem: Tests use hand coded feature and option checks. Solution: Use the commands from check.vim in more tests.
2019-06-24patch 8.1.1585: :let-heredoc does not trim enoughv8.1.1585Bram Moolenaar
Problem: :let-heredoc does not trim enough. Solution: Trim indent from the contents based on the indent of the first line. Use let-heredoc in more tests.
2019-06-06patch 8.1.1483: skipped tests are not properly listedv8.1.1483Bram Moolenaar
Problem: Skipped tests are not properly listed. Solution: Throw a "Skipped" exception instead of using ":finish" or ":return".
2019-04-08patch 8.1.1138: plugins don't get notified when the popup menu changesv8.1.1138Bram Moolenaar
Problem: Plugins don't get notified when the popup menu changes. Solution: Add the CompleteChanged event. (Andy Massimino. closes #4176)
2019-04-06patch 8.1.1123: no way to avoid filtering for autocomplete functionv8.1.1123Bram Moolenaar
Problem: No way to avoid filtering for autocomplete function, causing flickering of the popup menu. Solution: Add the "equal" field to complete items. (closes #3887)
2019-03-29patch 8.1.1068: cannot get all the information about current completionv8.1.1068Bram Moolenaar
Problem: Cannot get all the information about current completion. Solution: Add complete_info(). (Shougo, Hirohito Higashi, closes #4106)