diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-17 23:03:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-17 23:03:31 +0200 |
commit | 1b9645de3c05f37b5c30e78f999351b0cf486ade (patch) | |
tree | 4041a73d7fd4ab444372919e99962587a689388a /src/if_perl.xs | |
parent | dde403c2d8f3dabe6fefa7b526958b49a8f2e6e9 (diff) | |
download | vim-git-1b9645de3c05f37b5c30e78f999351b0cf486ade.tar.gz |
patch 8.0.1123: cannot define a toolbar for a windowv8.0.1123
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r-- | src/if_perl.xs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index 893683813..d67645cd5 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -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); } |