From 66c7dfeec6367eac5f7b0f9eff451a0577d8eae7 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Fri, 24 May 2024 14:53:01 -0600 Subject: remove SyntaxSymbol redirection type There is no reason why this isn't just a char *. --- view.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'view.h') diff --git a/view.h b/view.h index 63cef3e..ba7f0da 100644 --- a/view.h +++ b/view.h @@ -8,10 +8,6 @@ #include "text.h" #include "array.h" -typedef struct { - char *symbol; -} SyntaxSymbol; - enum { SYNTAX_SYMBOL_SPACE, SYNTAX_SYMBOL_TAB, @@ -69,7 +65,7 @@ typedef struct View { int selection_count; /* how many cursors do currently exist */ Line *line; /* used while drawing view content, line where next char will be drawn */ int col; /* used while drawing view content, column where next char will be drawn */ - const SyntaxSymbol *symbols[SYNTAX_SYMBOL_LAST]; /* symbols to use for white spaces etc */ + const char *symbols[SYNTAX_SYMBOL_LAST]; /* symbols to use for white spaces etc */ int tabwidth; /* how many spaces should be used to display a tab character */ Selection *selections; /* all cursors currently active */ int selection_generation; /* used to filter out newly created cursors during iteration */ @@ -351,8 +347,6 @@ void view_tabwidth_set(View*, int tabwidth); /** Apply a style to a text range. */ void view_style(View*, enum UiStyle, size_t start, size_t end); -char *view_symbol_eof_get(View*); - /** @} */ #endif -- cgit v1.2.3