diff options
| author | Quentin Carbonneaux | 2014-08-11 10:57:36 -0400 |
|---|---|---|
| committer | Quentin Carbonneaux | 2014-08-11 10:57:36 -0400 |
| commit | 2e4047d0ce3beccde0a1756ad861744b8e764944 (patch) | |
| tree | 93f646af684bddba7e3066be3a5bd9092ba0142c | |
| parent | 7669a65209ef6d5b631ebaf7b710a1022678f657 (diff) | |
signal the user when the buffer is dirty
| -rw-r--r-- | gui.h | 1 | ||||
| -rw-r--r-- | win.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -17,6 +17,7 @@ struct gcolor { }; #define GBlack (GColor){ 0, 0, 0, 0 } +#define GGray (GColor){ 150, 150, 150, 0 } #define GPaleBlue (GColor){ 208, 235, 255, 0 } #define GPaleGreen (GColor){ 231, 255, 221, 0 } #define GPalePink (GColor){ 255, 248, 221, 0 } @@ -400,6 +400,9 @@ draw(W *w, GColor bg) flushfrag(&f, w, 0, 0, sel); if (cw != 0) g->drawrect(&w->gr, cx, cy, cw, font.height, GXBlack); + if (w != &tag.win && w->eb->path) + if (w->eb->frev != eb_revision(w->eb)) + g->drawrect(&w->gr, 2, VMargin, HMargin-4, HMargin-4, GGray); w->rev = eb_revision(w->eb); } |
