| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
Refactor the codebase to isolate line-collection logic from the main.c driver
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* main.c:
- Introduce VEC_LINE (vector of struct line *) using DEFINE_VECTOR macro
- Create `struct lines` to hold current line buffer and all past lines
- Implement `lines_init`, `lines_append_last`, `lines_get_last_line`, `lines_free`
- Modify main loop:
- On KEY_ENTER, current line is stored and a new line is allocated
- On BACKSPACE, deletion is done in current line
- All stored lines and the current line are drawn line-by-line with vertical spacing
- Replace previous single-line logic (`lineh`) with full multi-line editor buffer
|
| | |
|
| |
|
|
|
|
|
|
| |
- Moved line-related functions (init, append, clear, delete, free) out of main.c
- Created new files: line.c and line.h to encapsulate `struct line` and its operations
- Updated main.c to use the new line module
- Simplified main.c by removing inline struct and function definitions
- Adjusted makefile to compile line.o
|
| |
|
|
| |
Should be improved
|
| | |
|
|
|
Dependancy: raylib-5.5_linux_amd64[1]
[1] https://github.com/raysan5/raylib/releases/tag/5.5
|