summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c023b27)
raw | patch | inline | side by side (parent: c023b27)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 13 Apr 2009 15:34:14 +0000 (17:34 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 13 Apr 2009 15:34:14 +0000 (17:34 +0200) |
This also fixes lazy behavior so that setting the cursor color no longer
automatically sets the text to bold.
automatically sets the text to bold.
NEWS | patch | blob | history | |
tig.c | patch | blob | history |
index cf56f493a11965cbf7c8845c27b1a42e4c84083b..492255f49c5260895c9871c74fee9056fa42e0b1 100644 (file)
--- a/NEWS
+++ b/NEWS
tig master
---------
+Incompatibilities:
+
+ - Setting the cursor color no longer automatically sets the text to
+ bold. The old 'lazy' behavior was a bug.
+
Improvements:
- Add branch view for choosing which branch to display in the main
- Make height of the lower view in a split view configurable by setting
the 'split-view-height' variable to a number or a percentage.
Defaults to 2/3 of the total view height.
+ - Allow multiple text attributes for color commands:
+
+ color cursor white blue underline bold
Bug fixes:
index 3d04317cd6da6beb23f804bfe9bd23ffe8de4939..cffa86d5fcafdd22544a19e7283f5e1f3241749d 100644 (file)
--- a/tig.c
+++ b/tig.c
{
struct line_info *info;
- if (argc != 3 && argc != 4) {
+ if (argc < 3) {
config_msg = "Wrong number of arguments given to color command";
return ERR;
}
return ERR;
}
- if (argc == 4 && !set_attribute(&info->attr, argv[3])) {
- config_msg = "Unknown attribute";
- return ERR;
+ info->attr = 0;
+ while (argc-- > 3) {
+ int attr;
+
+ if (!set_attribute(&attr, argv[argc])) {
+ config_msg = "Unknown attribute";
+ return ERR;
+ }
+ info->attr |= attr;
}
return OK;