| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
or an unallocated line
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed draw offsets and added scroll guard to not to try draw
non-existing parts and produce this:
(gdb) bt
#0 0x00007ffff7daba3c in ?? () from /usr/lib64/libc.so.6
#1 0x00007ffff7d51bd6 in raise () from /usr/lib64/libc.so.6
#2 0x00007ffff7d3930d in abort () from /usr/lib64/libc.so.6
#3 0x00007ffff7d39275 in ?? () from /usr/lib64/libc.so.6
#4 0x000055555555d7a5 in Vec_slinep_get (v=0x555555ae1ea0, index=50) at editor.c:20
#5 0x000055555555d950 in eb_get_line (eb=0x555556479b50, index=50) at editor.c:67
#6 0x000055555555e18b in eb_get_line_slice (eb=0x555556479b50, pos=50, sl=0x7fffffffc6e0) at editor.c:255
#7 0x0000555555560c98 in view_eb_draw (veb=0x555556258100) at view.c:220
#8 0x00005555555607d9 in view_draw_under (root=0x555556689000) at view.c:155
#9 0x000055555555fc78 in main (argc=2, argv=0x7fffffffd8c8) at main.c:47
I mean... what I were doing last year? This is just unreadable.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
- rename and refactor draw_text_slice to draw_textn for more freely used
|
|
|
This patch extracts the drawing logic from redr_raylib.c and moves it
into a new abstraction layer in view.c, introducing a tree-based view
system for UI rendering.
- view.c defines a hierarchical 'view' structure with polymorphic draw methods.
- root and ed_buf views are implemented as a proof of concept.
- redr.c (via redr.h) now exposes only backend rendering primitives (text, clear, measure).
- main.c is updated to instantiate and draw the view tree.
This separation clarifies the responsibilities between layout (view)
and rendering (redr) and prepares the system for future UI extensions
such as nested panels, split views, and overlays.
|