summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-04 23:07:27 -0400
committerpommicket <pommicket@gmail.com>2023-08-04 23:07:27 -0400
commitfa4c4fcb7f215dd2d63318c3aef6dd0794a44548 (patch)
tree92c10f429f83af03157c1a426e72de3e2229655a /ted.h
parent49ab483be3e7af88a3932a43f222aa42cacd3515 (diff)
cache buffer settings index
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ted.h b/ted.h
index c872697..4327173 100644
--- a/ted.h
+++ b/ted.h
@@ -413,8 +413,9 @@ typedef struct {
u32 nlines;
/// capacity of \ref lines
u32 lines_capacity;
- /// cached tab width, updated every frame
- u8 tab_width;
+
+ /// cached settings index (into ted->all_settings), or -1 if has not been computed yet
+ i32 settings_idx;
/// which LSP this document is open in
LSPID lsp_opened_in;