> Signs can also define a background color for an entire line, without defining
> an image or text. For example, in the past I used this to define alternating
> background colors for each line to make reading tables easier. Don't we need
> to redraw if *any* attributes arte defined for the sign?
Hmm, yes, you've right. Then patch should looks like this.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff -r abbde7b3841d src/ex_cmds.c
--- a/src/ex_cmds.c Mon Sep 15 14:25:55 2014 +0200
+++ b/src/ex_cmds.c Fri Sep 19 13:07:20 2014 +0700
@@ -7310,9 +7310,16 @@
else
/* ":sign place {id} file={fname}": change sign type */
lnum = buf_change_sign_type(buf, id, sp->sn_typenr);
- if (lnum > 0)
- update_debug_sign(buf, lnum);
- else
+ if (lnum > 0) {
+ if (sp->sn_text != NULL && STRLEN(sp->sn_text) > 0
+ || sp->sn_line_hl > 0
+#ifdef FEAT_SIGN_ICONS
+ || sp->sn_icon != NULL
+#endif
+ ) {
+ update_debug_sign(buf, lnum);
+ }
+ } else
EMSG2(_("E885: Not possible to change sign %s"), sign_name);
}
else