diff options
author | pommicket <pommicket@gmail.com> | 2024-09-08 14:56:12 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-09-08 14:56:12 -0400 |
commit | c4ab62a68f81fda1365bab9e5200f27a6a986bae (patch) | |
tree | 75efd94bc517c1aca84be2d10bb24ef5df642d46 /ted.h | |
parent | d37fe5d5d27d91a28776baf2593fefc0b749cc85 (diff) |
manual indentation, command palette fixes
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |