Christian Brabandt wrote:

> On So, 17 Sep 2017, Bram Moolenaar wrote:
> 
> > Patch 8.0.1123
> > Problem:    Cannot define a toolbar for a window.
> > Solution:   Add a window-local toolbar.
> > Files:      src/syntax.c, src/proto/syntax.pro, src/structs.h, src/menu.c,
> >             src/proto/menu.pro, src/testdir/test_winbar.vim, src/Makefile,
> >             src/normal.c, src/testdir/Make_all.mak, src/if_perl.xs,
> >             src/eval.c, src/evalfunc.c, src/window.c, src/ui.c,
> >             src/terminal.c, src/screen.c,
> >             runtime/pack/dist/opt/termdebug/plugin/termdebug.vim,
> >             runtime/doc/gui.txt, runtime/doc/terminal.txt
> 
> I feel like I am missing information how to add a toolbar to other 
> windows as well. I looked at the patch, and couldn't find out how you 
> added those toolbar commands to actually appear at the main window.
> 
> I just tried out latest Vim to see how this works and it looks like the 
> toolbar will only get displayed, once the window actually starts to 
> scroll, e.g. a redraw of the first line will show those toolbar 
> commands. Unfortunately, a <ctrl-l> will remove the toolbar again.
> 
> At first this was confusing, because I expected a toolbar and nothing 
> showed up, until after I started to scroll the window (using the 
> cursor).
> 
> Also after scrolling up and down a bit the toolbar also scrolls a bit 
> and appears in the middle of the window.

Seems you run into a bug.  I don't see these problems.  Try these
commands:

        amenu WinBar.Next :echo 'next'<CR>
        amenu WinBar.Prev :echo 'prev'<CR>
        amenu WinBar.Cont :echo 'cont'<CR>

Don't you get a window toolbar right away?
Perhaps some plugin is interfering?

-- 
hundred-and-one symptoms of being an internet addict:
159. You get excited whenever discussing your hard drive.

 /// 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui