Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 27879:76e2115dddb8 v8.2.4465
patch 8.2.4465: fuzzy completion does not order matches properly
Commit: https://github.com/vim/vim/commit/5ec633b9b0400519db60253cb5846e50394218b4
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri Feb 25 15:24:24 2022 +0000
patch 8.2.4465: fuzzy completion does not order matches properly
Problem: Fuzzy completion does not order matches properly.
Solution: Do not use regular expression match. (Yegappan Lakshmanan,
closes #9843)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Feb 2022 16:30:07 +0100 |
parents | ae38d2e81fca |
children | 5426a1d3f12d |
comparison
equal
deleted
inserted
replaced
27878:223dc382d076 | 27879:76e2115dddb8 |
---|---|
2755 call assert_equal('"let SVar', @:) | 2755 call assert_equal('"let SVar', @:) |
2756 set wildoptions=fuzzy | 2756 set wildoptions=fuzzy |
2757 call feedkeys(":let SVar\<Tab>\<C-B>\"\<CR>", 'tx') | 2757 call feedkeys(":let SVar\<Tab>\<C-B>\"\<CR>", 'tx') |
2758 call assert_equal('"let SomeVariable', @:) | 2758 call assert_equal('"let SomeVariable', @:) |
2759 | 2759 |
2760 " Test for sorting the results by the best match | |
2761 %bw! | |
2762 command T123format : | |
2763 command T123goformat : | |
2764 command T123TestFOrmat : | |
2765 command T123fendoff : | |
2766 command T123state : | |
2767 command T123FendingOff : | |
2768 set wildoptions=fuzzy | |
2769 call feedkeys(":T123fo\<C-A>\<C-B>\"\<CR>", 'tx') | |
2770 call assert_equal('"T123format T123TestFOrmat T123FendingOff T123goformat T123fendoff', @:) | |
2771 delcommand T123format | |
2772 delcommand T123goformat | |
2773 delcommand T123TestFOrmat | |
2774 delcommand T123fendoff | |
2775 delcommand T123state | |
2776 delcommand T123FendingOff | |
2777 %bw | |
2778 | |
2760 set wildoptions& | 2779 set wildoptions& |
2761 %bw! | 2780 %bw! |
2762 endfunc | 2781 endfunc |
2763 | 2782 |
2764 " vim: shiftwidth=2 sts=2 expandtab | 2783 " vim: shiftwidth=2 sts=2 expandtab |