Permalink
Browse files

Fix incorrect parsing of a file path inside a tag line

  • Loading branch information...
ozelentok committed Jun 6, 2017
1 parent 3f5992f commit 0a0961ba6eb212850d12356e0e68e6687c2c60f0
Showing with 3 additions and 2 deletions.
  1. +2 −1 README.md
  2. +1 −1 rplugin/python3/denite/source/denite_gtags/tags_base.py
View
@@ -34,9 +34,10 @@ nnoremap <leader>t :Denite -buffer-name=gtags_completion gtags_completion<cr>
nnoremap <leader>f :Denite -buffer-name=gtags_file gtags_file<cr>
nnoremap <leader>p :Denite -buffer-name=gtags_path gtags_path<cr>
```
### Examples ###
To show tag definition, move the cursor to the tag, press `<leader>d` or execute the following command:
To jump to a tag definition, move the cursor to the tag, press `<leader>d` or execute the following command:
```vim
:DeniteCursorWord gtags_def
```
@@ -4,7 +4,7 @@
class TagsBase(GtagsBase):
TAG_PATTERN = re.compile('(.*)\t(\\d+)\t(.*)')
TAG_PATTERN = re.compile('([^\t]+)\t(\\d+)\t(.*)')
def __init__(self, vim):
super().__init__(vim)

0 comments on commit 0a0961b

Please sign in to comment.