Mercurial > vim
comparison src/proto/ex_cmds.pro @ 15209:3a99b2e6d136 v8.1.0614
patch 8.1.0614: placing signs can be complicated
commit https://github.com/vim/vim/commit/162b71479bd4dcdb3a2ef9198a1444f6f99e6843
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 21 15:17:36 2018 +0100
patch 8.1.0614: placing signs can be complicated
Problem: Placing signs can be complicated.
Solution: Add functions for defining and placing signs. Introduce a group
name to avoid different plugins using the same signs. (Yegappan
Lakshmanan, closes #3652)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Dec 2018 15:30:07 +0100 |
parents | 16b2f2db6f28 |
children | 890203d87ee5 |
comparison
equal
deleted
inserted
replaced
15208:acf68008ca43 | 15209:3a99b2e6d136 |
---|---|
59 int sign_get_attr(int typenr, int line); | 59 int sign_get_attr(int typenr, int line); |
60 char_u *sign_get_text(int typenr); | 60 char_u *sign_get_text(int typenr); |
61 void *sign_get_image(int typenr); | 61 void *sign_get_image(int typenr); |
62 char_u *sign_typenr2name(int typenr); | 62 char_u *sign_typenr2name(int typenr); |
63 void free_signs(void); | 63 void free_signs(void); |
64 void free_signs(void); | |
64 char_u *get_sign_name(expand_T *xp, int idx); | 65 char_u *get_sign_name(expand_T *xp, int idx); |
65 void set_context_in_sign_cmd(expand_T *xp, char_u *arg); | 66 void set_context_in_sign_cmd(expand_T *xp, char_u *arg); |
66 void ex_smile(exarg_T *eap); | 67 void ex_smile(exarg_T *eap); |
67 void ex_drop(exarg_T *eap); | 68 void ex_drop(exarg_T *eap); |
68 char_u *skip_vimgrep_pat(char_u *p, char_u **s, int *flags); | 69 char_u *skip_vimgrep_pat(char_u *p, char_u **s, int *flags); |
69 void ex_oldfiles(exarg_T *eap); | 70 void ex_oldfiles(exarg_T *eap); |
71 int sign_define_by_name(char_u *name, char_u *icon, char_u *linehl, char_u *text, char_u *texthl); | |
72 int sign_undefine_by_name(char_u *name); | |
73 void sign_getlist(char_u *name, list_T *retlist); | |
74 int sign_place(int *sign_id, char_u *group, char_u *sign_name, buf_T *buf, linenr_T lnum, int prio); | |
75 int sign_unplace(int id, char_u *group, buf_T *buf); | |
76 void sign_get_placed(buf_T *buf, linenr_T lnum, int id, char_u *group, list_T *retlist); | |
70 /* vim: set ft=c : */ | 77 /* vim: set ft=c : */ |