Michael Henry wrote:

> The :sandbox command seems to disallow the use of :setlocal,
> even though it permits changing buffer-local options via :set.
> For example, this works fine:
> 
>   vim -u NONE '+set nocp | sandbox set ts=16'
> 
> But this fails:
> 
>   vim -u NONE '+set nocp | sandbox setlocal ts=16'
> 
> It generate the following error message:
> 
>   Error detected while processing command line:
>   E48: Not allowed in sandbox:  sandbox setlocal ts=16
> 
> I was expecting :setlocal would work with :sandbox; should it?

Yes, that appears to be a bug.  Not all options can be changed, for
safety, but if :set works when :setlocal should also work.

-- 
It is too bad that the speed of light hasn't kept pace with the
changes in CPU speed and network bandwidth. -- <[email protected]>

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui