mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1123: cannot define a toolbar for a window
Problem: Cannot define a toolbar for a window. Solution: Add a window-local toolbar.
This commit is contained in:
@@ -1387,11 +1387,8 @@ PerlIOVim_pushed(pTHX_ PerlIO *f, const char *mode,
|
||||
{
|
||||
PerlIOVim *s = PerlIOSelf(f, PerlIOVim);
|
||||
s->attr = 0;
|
||||
if (arg && SvPOK(arg)) {
|
||||
int id = syn_name2id((char_u *)SvPV_nolen(arg));
|
||||
if (id != 0)
|
||||
s->attr = syn_id2attr(id);
|
||||
}
|
||||
if (arg && SvPOK(arg))
|
||||
s->attr = syn_name2attr((char_u *)SvPV_nolen(arg));
|
||||
return PerlIOBase_pushed(aTHX_ f, mode, (SV *)NULL, tab);
|
||||
}
|
||||
|
||||
@@ -1482,11 +1479,7 @@ Msg(text, hl=NULL)
|
||||
{
|
||||
attr = 0;
|
||||
if (hl != NULL)
|
||||
{
|
||||
id = syn_name2id((char_u *)hl);
|
||||
if (id != 0)
|
||||
attr = syn_id2attr(id);
|
||||
}
|
||||
attr = syn_name2attr((char_u *)hl);
|
||||
msg_split((char_u *)text, attr);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user