aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-17 22:41:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-11-08 13:37:23 +0100
commit87c609e4c53202b4151c09bf479dc615eab4f84e (patch)
treedb882cca5dad2124edcda96925ae07a9aea07d5a /view.c
parentc339bb3ae6646c3dbef8e73f41c1e797ed5ec99b (diff)
downloadvis-87c609e4c53202b4151c09bf479dc615eab4f84e.tar.gz
vis-87c609e4c53202b4151c09bf479dc615eab4f84e.tar.xz
vis: implement :set cursorline
Diffstat (limited to 'view.c')
-rw-r--r--view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/view.c b/view.c
index 80e940b..1a308e5 100644
--- a/view.c
+++ b/view.c
@@ -889,6 +889,9 @@ bool view_syntax_set(View *view, const char *name) {
lua_getfield(L, -1, "STYLE_CURSOR");
view->ui->syntax_style(view->ui, UI_STYLE_CURSOR, lua_tostring(L, -1));
lua_pop(L, 1);
+ lua_getfield(L, -1, "STYLE_CURSOR_LINE");
+ view->ui->syntax_style(view->ui, UI_STYLE_CURSOR_LINE, lua_tostring(L, -1));
+ lua_pop(L, 1);
lua_getfield(L, -1, "STYLE_SELECTION");
view->ui->syntax_style(view->ui, UI_STYLE_SELECTION, lua_tostring(L, -1));
lua_pop(L, 1);