From 42f04699d6df2d5b144533737a8f2f7e0814ad85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 19 Mar 2017 11:51:00 +0100 Subject: Move :set syntax option implementation to lua It is no longer possible to change the used syntax by assigning to the `win.syntax = name` field, instead the function win:set_syntax(name)` should be called. The distinction between filetype and syntax lexer to use should probably be clarified/cleaned up at some point. --- vis.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 0d25d91..5c4971a 100644 --- a/vis.h +++ b/vis.h @@ -52,7 +52,6 @@ typedef struct { void (*win_open)(Vis*, Win*); void (*win_close)(Vis*, Win*); void (*win_highlight)(Vis*, Win*, size_t horizon); - bool (*win_syntax)(Vis*, Win*, const char *syntax); void (*win_status)(Vis*, Win*); } VisEvent; @@ -128,9 +127,6 @@ void vis_window_focus(Win*); /* swap location of two windows */ void vis_window_swap(Win*, Win*); -const char *vis_window_syntax_get(Win*); -bool vis_window_syntax_set(Win*, const char *name); - int vis_window_width_get(const Win*); int vis_window_height_get(const Win*); -- cgit v1.2.3