Mercurial > vim
comparison src/testdir/test_taglist.vim @ 28057:bfa81ded42e2 v8.2.4553
patch 8.2.4553: linear tag search is a bit slow
Commit: https://github.com/vim/vim/commit/8b530b3158cbd3aee2ad9cad8e7b7964faabb51e
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Mar 12 17:38:29 2022 +0000
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 https://github.com/vim/vim/issues/9937)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Mar 2022 18:45:03 +0100 |
parents | c724906134a3 |
children | c8ebe35b2475 |
comparison
equal
deleted
inserted
replaced
28056:fa0290f89c7b | 28057:bfa81ded42e2 |
---|---|
257 inboundGovernorCounters a 3;" kind:⊢ type:InboundGovernorState muxMode peerAddr m a b -> InboundGovernorCounters | 257 inboundGovernorCounters a 3;" kind:⊢ type:InboundGovernorState muxMode peerAddr m a b -> InboundGovernorCounters |
258 END | 258 END |
259 call writefile(tagslines, 'Xtags') | 259 call writefile(tagslines, 'Xtags') |
260 set tags=Xtags | 260 set tags=Xtags |
261 | 261 |
262 " try with binary search | |
263 set tagbsearch | |
262 call feedkeys(":tag inbou\<C-A>\<C-B>\"\<CR>", 'xt') | 264 call feedkeys(":tag inbou\<C-A>\<C-B>\"\<CR>", 'xt') |
263 call assert_equal('"tag inboundGSV inboundGovernor inboundGovernorCounters', @:) | 265 call assert_equal('"tag inboundGSV inboundGovernor inboundGovernorCounters', @:) |
266 " try with linear search | |
267 set notagbsearch | |
268 call feedkeys(":tag inbou\<C-A>\<C-B>\"\<CR>", 'xt') | |
269 call assert_equal('"tag inboundGSV inboundGovernor inboundGovernorCounters', @:) | |
270 set tagbsearch& | |
264 | 271 |
265 call delete('Xtags') | 272 call delete('Xtags') |
266 set tags& | 273 set tags& |
267 endfunc | 274 endfunc |
268 | 275 |