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

TOC jumping issue with autochdir and inputs #201

Open
nbren12 opened this issue Jul 9, 2014 · 1 comment
Open

TOC jumping issue with autochdir and inputs #201

nbren12 opened this issue Jul 9, 2014 · 1 comment

Comments

@nbren12
Copy link

nbren12 commented Jul 9, 2014

I have an multifile document that includes files from the current and parent directories, and I am experiencing the following error when trying to jump to section using the TOC.It only occurs when I have set autochdir in my vimrc:

autocommand syn region UtlUrl matchgroup=UtlTag start="<LNK:" end=">" containedin=ALL

Executing BufWinEnter Auto commands for "*"
autocommand syn case match

chdir(/Users/noah/Dropbox/stochmc)
Error detected while processing function <SNR>89_TOCActivate..<SNR>89_TOCFindMatch..<SNR>89_TOCFindMatch..<SNR>89_TOCFindMatch..<SNR>89_TOCFindMatch..<SNR>89_TOCFindMatch..<SNR>89_TOCFindMatch:
line    2:
Could not find: \\subsection\_\s*{Wave structure}
Executing BufWinLeave Auto commands for "*"
autocommand execute getwinvar(+bufwinnr(+expand('<abuf>')), 'fugitive_leave')

Executing BufWinLeave Auto commands for "*"
autocommand if s:diff_window_count() == 2 && &diff && getbufvar(+expand('<abuf>'), 'git_dir') !=# '' | call s:diffoff_all(getbufvar(+expand('<abuf>'), 'git_dir')) | endif

After this error message, the window displays an empty buffer in the _parent directory_ of the directory containing my main latex file! It seems like autochdir is changing the current directory to the location of one included file, but does not jump back.

@lervag
Copy link

lervag commented Jul 9, 2014

Interesting. I don't think I've met anyone who uses the autochdir before. It seems the TOC system relies on relative paths, which obviously does not work well with autochdir. This should be fixed. I might try when I get some more time, but I already have other bugs in my mind right now.

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

2 participants