context.vim
context.vim copied to clipboard
refreshing the file with `:e` raises error in file with modeline
There seems to be some problem with modelines when refreshing the file twice, I see errors as below:
Error detected while processing modelines[1]..OptionSet Autocommands for "tabstop"..function context#update[87]..context#popup#update_context[10]..<SNR>43_show[21]..<SN
R>43_open[3]..context#popup#nvim#open:
line 3:
E12: Command not allowed in secure mode in current dir or tag search
Error detected while processing modelines[1]..OptionSet Autocommands for "tabstop"..function context#update[87]..context#popup#update_context[10]..<SNR>43_show[21]..<SN
R>43_open[3]..context#popup#nvim#open:
line 3:
E12: Command not allowed in secure mode in current dir or tag search
Error detected while processing modelines[1]..OptionSet Autoc
ommands for "tabstop"..function context#update[87]..context#p
opup#update_context[10]..<SNR>43_show[21]..<SNR>43_open[3]..c
ontext#popup#nvim#open:
line 3:
E12: Command not allowed in secure mode in current dir or tag
search
Press ENTER or type command to continue
Buffer content:
/* vi:set ts=8 sts=4 sw=4 noet: */
extern "C" {
# include "vim.h"
}
#endif