diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-27 20:30:23 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-27 20:30:23 +0200 |
| commit | dfe9937786a5183952bb464901da9ba951e71652 (patch) | |
| tree | f8875f2d89d852095307b9163297ff9ec94833aa /ui-terminal.c | |
| parent | 56f198904932a87952d89f0d13b30ba229901a83 (diff) | |
| parent | 03ceb7943b7f28c0b52803d64f956ca549e2cc03 (diff) | |
| download | vis-dfe9937786a5183952bb464901da9ba951e71652.tar.gz vis-dfe9937786a5183952bb464901da9ba951e71652.tar.xz | |
Merge branch 'theme-tweaks-2' of https://github.com/p-e-w/vis
Conflicts:
view.c
Diffstat (limited to 'ui-terminal.c')
| -rw-r--r-- | ui-terminal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-terminal.c b/ui-terminal.c index 69a6f29..d42ee9b 100644 --- a/ui-terminal.c +++ b/ui-terminal.c @@ -271,7 +271,8 @@ static void ui_window_draw(UiWin *w) { } snprintf(buf, sizeof buf, "%*zu ", sidebar_width-1, number); } - ui_draw_string(ui, x, y, buf, win, UI_STYLE_LINENUMBER); + ui_draw_string(ui, x, y, buf, win, + (l->lineno == cursor_lineno) ? UI_STYLE_LINENUMBER_CURSOR : UI_STYLE_LINENUMBER); prev_lineno = l->lineno; } debug("draw-window: [%d][%d] ... cells[%d][%d]\n", y, x+sidebar_width, y, view_width); |
