diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-02-18 22:08:45 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-02-18 22:08:45 +0000 |
commit | 212ca9edf9c2be0499cdce39326abba57b088bcd (patch) | |
tree | b14bcc7e91fb33213b349914c477d9c22cd8a25d /Src/Zle/zle_refresh.c | |
parent | 6be3fe2fca7d904ce4c83303a1b23e36ed45a084 (diff) | |
download | zsh-212ca9edf9c2be0499cdce39326abba57b088bcd.tar.gz zsh-212ca9edf9c2be0499cdce39326abba57b088bcd.tar.xz zsh-212ca9edf9c2be0499cdce39326abba57b088bcd.zip |
28772: Update regions in region highlight dynamically
Diffstat (limited to 'Src/Zle/zle_refresh.c')
-rw-r--r-- | Src/Zle/zle_refresh.c | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index 3b60285c9..a78aef7db 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -210,50 +210,21 @@ int predisplaylen, postdisplaylen; static int default_atr_on, special_atr_on; -/* Flags for the region_highlight structure */ -enum { - /* Offsets include predisplay */ - ZRH_PREDISPLAY = 1 -}; - -/* - * Attributes used for highlighting regions. - * and mark. - */ -struct region_highlight { - /* Attributes turned on in the region */ - int atr; - /* Start of the region */ - int start; - /* - * End of the region: position of the first character not highlighted - * (the same system as for point and mark). - */ - int end; - /* - * Any of the flags defined above. - */ - int flags; -}; /* * Array of region highlights, no special termination. * The first element (0) always describes the region between * point and mark. Any other elements are set by the user * via the parameter region_highlight. */ + +/**/ struct region_highlight *region_highlights; -/* - * Count of special uses of region highlighting, which account - * for the first few elements of region_highlights. - * 0: region between point and mark - * 1: isearch region - * 2: suffix - */ -#define N_SPECIAL_HIGHLIGHTS (3) + /* * Number of elements in region_highlights. * This includes the special elements above. */ +/**/ int n_region_highlights; /* |