diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2024-05-24 14:53:01 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-24 14:53:01 -0600 |
| commit | 66c7dfeec6367eac5f7b0f9eff451a0577d8eae7 (patch) | |
| tree | 9b68a5eb5a08dff90fce68e41d06fd5175569e56 /view.h | |
| parent | 4d38c3a922818159b67bb7bede4b00fb592ee484 (diff) | |
| download | vis-66c7dfeec6367eac5f7b0f9eff451a0577d8eae7.tar.gz vis-66c7dfeec6367eac5f7b0f9eff451a0577d8eae7.tar.xz | |
remove SyntaxSymbol redirection type
There is no reason why this isn't just a char *.
Diffstat (limited to 'view.h')
| -rw-r--r-- | view.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 |
