From c4ab62a68f81fda1365bab9e5200f27a6a986bae Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 8 Sep 2024 14:56:12 -0400 Subject: manual indentation, command palette fixes --- ted.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ted.h') diff --git a/ted.h b/ted.h index 19121a7..d95d158 100644 --- a/ted.h +++ b/ted.h @@ -768,6 +768,12 @@ int buffer_pos_cmp(BufferPos p1, BufferPos p2); /// returns `p2 - p1`, that is, the number of characters between `p1` and `p2`, /// but negative if `p1` comes after `p2`. i64 buffer_pos_diff(TextBuffer *buffer, BufferPos p1, BufferPos p2); +/// force buffer indentation to `n` spaces +void buffer_set_manual_indent_with_spaces(TextBuffer *buffer); +/// force buffer indentation to tabs +void buffer_set_manual_indent_with_tabs(TextBuffer *buffer); +/// force buffer tab width to `n` +void buffer_set_manual_tab_width(TextBuffer *buffer, u8 n); // === build.c === /// clear build errors and stop -- cgit v1.2.3