aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-18 20:03:29 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-18 20:05:00 +0800
commit6a5fbabe485e673ffb4c7e8aaba77534ad3c671a (patch)
tree043b4c8f48aaaa59b5add82d3ef0d71da652a20c /src/nvim/testdir
parentcf759c7429c6b81adbbd6ffd93d80131b608cebc (diff)
downloadrneovim-6a5fbabe485e673ffb4c7e8aaba77534ad3c671a.tar.gz
rneovim-6a5fbabe485e673ffb4c7e8aaba77534ad3c671a.tar.bz2
rneovim-6a5fbabe485e673ffb4c7e8aaba77534ad3c671a.zip
vim-patch:8.2.4553: linear tag search is a bit slow
Problem: Linear tag search is a bit slow. Solution: Remove a vim_ftell() call. (Yegappan Lakshmanan, closes vim/vim#9937) https://github.com/vim/vim/commit/8b530b3158cbd3aee2ad9cad8e7b7964faabb51e Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_taglist.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_taglist.vim b/src/nvim/testdir/test_taglist.vim
index 1a3d1986bf..0387ef2bd8 100644
--- a/src/nvim/testdir/test_taglist.vim
+++ b/src/nvim/testdir/test_taglist.vim
@@ -264,8 +264,15 @@ func Test_tag_complete_with_overlong_line()
call writefile(tagslines, 'Xtags')
set tags=Xtags
+ " try with binary search
+ set tagbsearch
call feedkeys(":tag inbou\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal('"tag inboundGSV inboundGovernor inboundGovernorCounters', @:)
+ " try with linear search
+ set notagbsearch
+ call feedkeys(":tag inbou\<C-A>\<C-B>\"\<CR>", 'xt')
+ call assert_equal('"tag inboundGSV inboundGovernor inboundGovernorCounters', @:)
+ set tagbsearch&
call delete('Xtags')
set tags&