summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-28 00:45:33 -0400
committerpommicket <pommicket@gmail.com>2025-09-28 00:46:21 -0400
commit3c9e139aec08d1bb406a6219122ca982b4b7dc34 (patch)
tree4d7993152bbb76f1d8b7df6de45fb032332b94d0 /buffer.c
parente78bf3013ddb588638a93bed1f6eff4d0beb5106 (diff)
Remove trailing white space in source files
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index e56c18e..7ed3649 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1019,7 +1019,7 @@ static void buffer_free_inner(TextBuffer *buffer) {
if (!ted->quit) { // don't send didClose on quit (calling buffer_lsp would actually create a LSP if this is called after destroying all the LSPs which isnt good)
LSP *lsp = buffer_lsp(buffer);
if (lsp) {
- buffer_send_lsp_did_close(buffer, lsp, NULL);
+ buffer_send_lsp_did_close(buffer, lsp, NULL);
}
}
@@ -2546,7 +2546,7 @@ void buffer_delete_chars_at_pos(TextBuffer *buffer, BufferPos pos, i64 nchars_)
}
BufferPos del_start = pos, del_end = buffer_pos_advance(buffer, del_start, nchars);
- bool create_new_edit =
+ bool create_new_edit =
!last_edit || // if there is no previous edit to combine it with
buffer_pos_cmp(del_end, edit_start) < 0 || // or if delete does not overlap last_edit
buffer_pos_cmp(del_start, edit_end) > 0 ||