Mercurial > vim
comparison src/structs.h @ 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 | 9df130fd5e0d |
children | 83ff85896a14 |
comparison
equal
deleted
inserted
replaced
15208:acf68008ca43 | 15209:3a99b2e6d136 |
---|---|
738 struct signlist | 738 struct signlist |
739 { | 739 { |
740 int id; /* unique identifier for each placed sign */ | 740 int id; /* unique identifier for each placed sign */ |
741 linenr_T lnum; /* line number which has this sign */ | 741 linenr_T lnum; /* line number which has this sign */ |
742 int typenr; /* typenr of sign */ | 742 int typenr; /* typenr of sign */ |
743 char_u *group; /* sign group */ | |
744 int priority; /* priority for highlighting */ | |
743 signlist_T *next; /* next signlist entry */ | 745 signlist_T *next; /* next signlist entry */ |
744 signlist_T *prev; /* previous entry -- for easy reordering */ | 746 signlist_T *prev; /* previous entry -- for easy reordering */ |
745 }; | 747 }; |
748 | |
749 // Default sign priority for highlighting | |
750 #define SIGN_DEF_PRIO 10 | |
746 | 751 |
747 /* type argument for buf_getsigntype() */ | 752 /* type argument for buf_getsigntype() */ |
748 #define SIGN_ANY 0 | 753 #define SIGN_ANY 0 |
749 #define SIGN_LINEHL 1 | 754 #define SIGN_LINEHL 1 |
750 #define SIGN_ICON 2 | 755 #define SIGN_ICON 2 |