summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 417ae6d)
raw | patch | inline | side by side (parent: 417ae6d)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 3 Apr 2008 15:02:15 +0000 (17:02 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 3 Apr 2008 15:50:47 +0000 (17:50 +0200) |
Renames the blame-lineno color to line-number.
tig.c | patch | blob | history | |
tigrc.5.txt | patch | blob | history |
index 551100f6031e2f7d1d01827ab4827dfc8f4001ff..a7499ea13efbe4f732b2393c2e24371491d6c1a7 100644 (file)
--- a/tig.c
+++ b/tig.c
LINE(CURSOR, "", COLOR_WHITE, COLOR_GREEN, A_BOLD), \
LINE(STATUS, "", COLOR_GREEN, COLOR_DEFAULT, 0), \
LINE(DELIMITER, "", COLOR_MAGENTA, COLOR_DEFAULT, 0), \
+LINE(LINE_NUMBER, "", COLOR_CYAN, COLOR_DEFAULT, 0), \
LINE(TITLE_BLUR, "", COLOR_WHITE, COLOR_BLUE, 0), \
LINE(TITLE_FOCUS, "", COLOR_WHITE, COLOR_BLUE, A_BOLD), \
LINE(MAIN_DATE, "", COLOR_BLUE, COLOR_DEFAULT, 0), \
LINE(BLAME_DATE, "", COLOR_BLUE, COLOR_DEFAULT, 0), \
LINE(BLAME_AUTHOR, "", COLOR_GREEN, COLOR_DEFAULT, 0), \
LINE(BLAME_COMMIT, "", COLOR_DEFAULT, COLOR_DEFAULT, 0), \
-LINE(BLAME_ID, "", COLOR_MAGENTA, COLOR_DEFAULT, 0), \
-LINE(BLAME_LINENO, "", COLOR_CYAN, COLOR_DEFAULT, 0)
+LINE(BLAME_ID, "", COLOR_MAGENTA, COLOR_DEFAULT, 0)
enum line_type {
#define LINE(type, line, fg, bg, attr) \
if (max < max_number)
max_number = max;
+ if (!selected)
+ wattrset(view->win, get_line_attr(LINE_LINE_NUMBER));
col = draw_text(view, number, max_number, showtrimmed, selected);
if (col < max) {
if (!selected)
@@ -3635,8 +3637,6 @@ blame_draw(struct view *view, struct line *line, unsigned int lineno, bool selec
}
{
- if (!selected)
- wattrset(view->win, get_line_attr(LINE_BLAME_LINENO));
col += draw_lineno(view, lineno, view->width - col, selected);
if (col >= view->width)
return TRUE;
diff --git a/tigrc.5.txt b/tigrc.5.txt
index f226968008c8fd026871b4c9ccd5be8d30dbdd75..1325225a0d9955b3f973d78ca72a8b0ee798c2dd 100644 (file)
--- a/tigrc.5.txt
+++ b/tigrc.5.txt
*title-blur*, *title-focus*
-Cursor line colors::
+Misc colors::
-*cursor*
+Colors for the cursor line, line numbers, and delimiter shown for truncated
+lines.
-Color of delimiter shown for truncated lines::
-
-*delimiter*
+*cursor*, *delimiter*, *line-number*
Main view specific::
The colors used for the blame view are similar to those in the main view.
The commit ID color can be colored using *blame-id*.
-*blame-date*, *blame-author*, *blame-commit*, *blame-id*, *blame-lineno*
+*blame-date*, *blame-author*, *blame-commit*, *blame-id*
--