Mercurial > vim
comparison src/testdir/test_taglist.vim @ 26492:08e3eee541ac v8.2.3776
patch 8.2.3776: when a tags file line is long a tag may not be found
Commit: https://github.com/vim/vim/commit/f8e9eb8e173bf0ff9560192ae888941ef8302269
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 10 20:15:15 2021 +0000
patch 8.2.3776: when a tags file line is long a tag may not be found
Problem: When a tags file line is long a tag may not be found.
Solution: When increasing the buffer size read the same line again.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 10 Dec 2021 21:30:03 +0100 |
parents | ff21e2962490 |
children | c724906134a3 |
comparison
equal
deleted
inserted
replaced
26491:653b058ee612 | 26492:08e3eee541ac |
---|---|
234 call delete('Xtags') | 234 call delete('Xtags') |
235 set wildoptions& | 235 set wildoptions& |
236 set tags& | 236 set tags& |
237 endfunc | 237 endfunc |
238 | 238 |
239 func Test_tag_complete_with_overlong_line() | |
240 let tagslines =<< trim END | |
241 !_TAG_FILE_FORMAT 2 // | |
242 !_TAG_FILE_SORTED 1 // | |
243 !_TAG_FILE_ENCODING utf-8 // | |
244 inboundGSV a 1;" r | |
245 inboundGovernor a 2;" kind:⊢ type:forall (muxMode :: MuxMode) socket peerAddr versionNumber m a b. (MonadAsync m, MonadCatch m, MonadEvaluate m, MonadThrow m, MonadThrow (STM m), MonadTime m, MonadTimer m, MonadMask m, Ord peerAddr, HasResponder muxMode ~ True) => Tracer m (RemoteTransitionTrace peerAddr) -> Tracer m (InboundGovernorTrace peerAddr) -> ServerControlChannel muxMode peerAddr ByteString m a b -> DiffTime -> MuxConnectionManager muxMode socket peerAddr versionNumber ByteString m a b -> StrictTVar m InboundGovernorObservableState -> m Void | |
246 inboundGovernorCounters a 3;" kind:⊢ type:InboundGovernorState muxMode peerAddr m a b -> InboundGovernorCounters | |
247 END | |
248 call writefile(tagslines, 'Xtags') | |
249 set tags=Xtags | |
250 | |
251 call feedkeys(":tag inbou\<C-A>\<C-B>\"\<CR>", 'xt') | |
252 call assert_equal('"tag inboundGSV inboundGovernor inboundGovernorCounters', @:) | |
253 | |
254 call delete('Xtags') | |
255 set tags& | |
256 endfunc | |
257 | |
239 " vim: shiftwidth=2 sts=2 expandtab | 258 " vim: shiftwidth=2 sts=2 expandtab |