vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

segfaults after a LOT of actions #89

Open tpoisot opened 11 years ago

tpoisot commented 11 years ago

I'm using vim 7.3, and I've been running into more and more segfaults. I'm on ArchLinux, python support is enabled (I've installed the gvim package), and everything is up to date (I removed and re-installed vim-pandoc and vim-markdown to be sure).

The specific actions that trigger segfaults are

  1. Unfolding a text block
  2. Trying to tpye @ in INSERT mode

The line at fault is 135 in vim-pandoc/syntax/pandoc.vim (in-text citations without location). Whenever it is commented out, there are no more segfaults, but some citations are not recognized.

Is it possible that the regexp is responsible for that?

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul  2 2013 18:31:11)
Patches : 1-1287
jldiaz commented 11 years ago

@tpoisot Perhaps the text block you unfold contains a @? If so the two cases would reduce to one. See also issues #88 and #87 and my proposed workaround (in #88)