Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAGS are off by one line #94

Open
cheater opened this issue Apr 13, 2024 · 1 comment
Open

TAGS are off by one line #94

cheater opened this issue Apr 13, 2024 · 1 comment

Comments

@cheater
Copy link

cheater commented Apr 13, 2024

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.

@cheater
Copy link
Author

cheater commented Apr 13, 2024

forgot to add, DoCapture is on line 86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant