summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-23 13:07:37 -0500
committerpommicket <pommicket@gmail.com>2022-12-23 13:07:37 -0500
commit7bf8860601771be812e72c557fe9681c968bceaf (patch)
tree035f7a767628daf8cdda1160555f39a8cfc698b7 /buffer.c
parente4774c14963bf51840bbf940c1181fe7fc7c3046 (diff)
identifier-trigger-characters setting
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/buffer.c b/buffer.c
index 949f19e..6df6c9c 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1206,16 +1206,6 @@ i64 buffer_cursor_move_down(TextBuffer *buffer, i64 by) {
return ret;
}
-// Is this character a "word" character?
-// This determines how buffer_pos_move_words (i.e. ctrl+left/right) works
-static bool is_word(char32_t c) {
- return c > WCHAR_MAX || c == '_' || iswalnum((wint_t)c);
-}
-
-static bool is_space(char32_t c) {
- return c > WCHAR_MAX || iswspace((wint_t)c);
-}
-
// move left / right by the specified number of words
// returns the number of words successfully moved forward
i64 buffer_pos_move_words(TextBuffer *buffer, BufferPos *pos, i64 nwords) {