summaryrefslogtreecommitdiff
path: root/test_editor.c
Commit message (Collapse)AuthorAgeFilesLines
* fix: double-free of line object in eb_backspace and eb_delete_linedilluti0n2025-05-141-0/+3
| | | | | | | | On eb_backspace, when the upper line was non-null, line_cat followed by line_free, and eb_delete_line only cleared the line_vec. However, commit 2441e78 introduced an additional line_free in eb_delete_line to fix a memory leak, which led to a double-free for that line. This patch resolves that problem.
* fix: Memory Leak in eb_delete_linedilluti0n2025-05-101-6/+76
| | | | | | The function eb_delete_line did not properly free the contents of the entry when deleting an element from eb->line_vec. This patch fixes that issue.
* test: mark TODOs for editor_suite::cursor_move and *::middle_of_linedilluti0n2025-05-011-0/+10
|
* fix: cr_assert_slice_eq not checking excess bytes with actual stringdilluti0n2025-05-011-4/+19
|
* test: for editor.c implement editor_suite::not_middle_of_linedilluti0n2025-05-011-0/+83