};
#define COLOR_PAIR(bg, fg) (((bg) << 8) | (fg))
-int CLR_NormalText = COLOR_PAIR(0,4);
-int CLR_GutterText = COLOR_PAIR(0,3);
-int CLR_SelectedText = COLOR_PAIR(4,0);
int CLR_TagsBkg = 1; // Background color for the tags region
int CLR_EditBkg = 0; // Background color for the edit region
int CLR_ScrollBkg = 3; // Background color for the scroll region
int CLR_Ruler = 1; // Ruler color
int CLR_Cursor = 7; // Cursor color
-int CLR_CurrentLine = 13; // Current Line Number
-int CLR_Comment = 2; // Comment color
+/* Text Color Attributes BG, FG */
+int CLR_NormalText = COLOR_PAIR( 0, 4 );
+int CLR_SelectedText = COLOR_PAIR( 4, 0 );
+int CLR_GutterText = COLOR_PAIR( 0, 3 );
+int CLR_CurrentLine = COLOR_PAIR( 11, 7 ); // Current Line Number
+int CLR_Comment = COLOR_PAIR( 0, 2 ); // Comment color
#undef INCLUDE_DEFS
#endif
size_t gcols = gutter_cols();
for (size_t line = 0, y = 0; y < view->nrows; y++) {
Row* row = view_getrow(view, y);
- if (line != row->line)
- draw_line_num(
- (y == Regions[i].csry),
- Regions[i].x - (gcols * fwidth) - 5,
- Regions[i].y + ((y+1) * fheight),
- gcols,
- row->line);
+ draw_line_num( (y == Regions[i].csry),
+ Regions[i].x - (gcols * fwidth) - 5,
+ Regions[i].y + ((y+1) * fheight),
+ gcols,
+ (line != row->line ? row->line : 0) );
draw_glyphs(Regions[i].x, Regions[i].y + ((y+1) * fheight), row->cols, row->rlen, row->len);
line = row->line;
}