summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-09-08 14:56:12 -0400
committerpommicket <pommicket@gmail.com>2024-09-08 14:56:12 -0400
commitc4ab62a68f81fda1365bab9e5200f27a6a986bae (patch)
tree75efd94bc517c1aca84be2d10bb24ef5df642d46 /ted.h
parentd37fe5d5d27d91a28776baf2593fefc0b749cc85 (diff)
manual indentation, command palette fixes
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h6
1 files changed, 6 insertions, 0 deletions
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