context.vim icon indicating copy to clipboard operation
context.vim copied to clipboard

refreshing the file with `:e` raises error in file with modeline

Open kaddkaka opened this issue 2 years ago • 0 comments

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




image image

kaddkaka avatar Nov 03 '23 22:11 kaddkaka