Skip to content

TAGS are off by one line #94

@cheater

Description

@cheater

in vim, when i use ctrl-] to jump to a tag, I am placed on the line preceding the thing I jumped to.

i created tags using hasktags -bx .

my vimrc looks like this:

set ignorecase
set hls
set smartcase
set hidden
set et
set sw=2
set tw=4
set incsearch
set paste

if !has("nvim")
    :set cryptmethod=blowfish
endif

set tags=./TAGS,TAGS
autocmd BufWritePost *.hs :silent! exec "!hasktags --etags ."
autocmd BufWritePre *.hs :%s/\s\+$//e

for example, I have a constructor called DoCapture that looks like this:

| DoCapture FeedCaptureMode FeedSource Bool (Maybe [ProductionId])

and the TAGS file says:
| DoCapture ^?DoCapture^A85,86

where ^? and ^A are escape sequences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions