summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index ecd6e89..819001f 100644
--- a/ted.h
+++ b/ted.h
@@ -414,6 +414,10 @@ typedef struct {
/// which LSP this document is open in
LSPID lsp_opened_in;
+ /// determining which LSP to use for a buffer takes some work,
+ /// so we don't want to do it every single frame.
+ /// this keeps track of the last time we actually checked what the correct LSP is.
+ double last_lsp_check;
/// where in the undo history was the last write? used by \ref buffer_unsaved_changes
u32 undo_history_write_pos;