preservim / vim-textobj-quote

Use ‘curly’ quote characters in Vim
Other
123 stars 6 forks source link

Fix running in the sandbox #18

Closed mcepl closed 2 years ago

mcepl commented 6 years ago

This is a very much work in progress trying to fix #17 . I tried to fix all error messages, but it doesn't seem like working (I cannot even define new functions in the sandbox), so some other approach probably needs to be taken. Why we are in the sandbox at all?

mcepl commented 6 years ago

OK, so when I remove scriptencoding, I hit another problem. When running '0 (not when I open the document from the command line; and for the record using neovim from git neovim/neovim@e46534b42 ), I hit another error:

Error detected while processing /home/matej/.vim/pack/minpac/start/vim-textobj-quote/autoload/textobj/quote.vim:
line   14:
E48: Not allowed in sandbox: function! s:unicode_enabled()
mcepl commented 2 years ago

No objection.

telemachus commented 2 years ago

I was going to suggest the same thing.

alerque commented 2 years ago

@mcepl Thanks for trying to figure this out and contribute. If this surfaces again we'll gladly revisit.