-
Notifications
You must be signed in to change notification settings - Fork 14
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
Vim freezes when editing around URL-like text #4
Comments
How to reproduce
This problem would occur only the first time. |
Does it reproduce in v2 branch? |
Yes, I'm using v2 branch. |
Another example I've found that seems to cause a massive freeze - is typing out a block comment in css or js: |
Confirm on vim/gvim (8.1.158), neovim-nightly.
To reproduce:
|
It also hangs even with the following string:
|
got the same issue, and I think it's the when
a workaround: let l:kw = matchstr(l:typed, '<\@<!\(\.\{0,2}/\|\~\).*$')
" add these lines:
if match(l:kw, '^//') >= 0
let l:kw = strpart(l:kw, 1)
endif |
@ZSaberLv0 does it also support |
I think it's different issue #14 result to this issue resut to maybe, the best solution would be: let l:kw = substitute(l:kw, '\(/\|^\)\*\+\(/\|$\)', '\1\2', 'g')
let l:kw = substitute(l:kw, '\\', '/', 'g')
let l:kw = substitute(l:kw, '//\+', '/', 'g') |
When I edited a markdown file, I experienced vim freezing several times. It seems that
fnamemodify()
is the reason.asyncomplete-file.vim/autoload/asyncomplete/sources/file.vim
Line 33 in 99707aa
If
l:cwd
is a text like'//a/b/c'
, vim freezes several seconds. Probably,fnamemodify()
might try to search for a network drive in windows os (?) Ifl:cwd
starts with\\
current one is expected behavior, but it would be nice to avoid it ifl:cwd
starts with//
.I'm using gvim 8.1.1005 on windows 10.
The text was updated successfully, but these errors were encountered: