diff options
Diffstat (limited to 'src/ui_elements')
| -rw-r--r-- | src/ui_elements/TextEditor.c | 2 | ||||
| -rw-r--r-- | src/ui_elements/UI.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ui_elements/TextEditor.c b/src/ui_elements/TextEditor.c index 3cf34ff..1d35612 100644 --- a/src/ui_elements/TextEditor.c +++ b/src/ui_elements/TextEditor.c @@ -500,13 +500,11 @@ void HandleControlComands(TextArea *ta) { } /// Assumes that control is pressed void HandleAltComands(TextArea *ta) { - // emacs-like stuff if (IsKeyPressedFix(KEY_F)) MoveCursorRightWord(ta); if (IsKeyPressedFix(KEY_B)) MoveCursorLeftWord(ta); } - void HandleKeyboard(TextArea *ta) { if (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL)) { HandleControlComands(ta); diff --git a/src/ui_elements/UI.h b/src/ui_elements/UI.h index bab154c..06d127f 100644 --- a/src/ui_elements/UI.h +++ b/src/ui_elements/UI.h @@ -7,7 +7,9 @@ static const float SCROLL_SENC = 10; static const float TAB_WIDTH = 4; +// Sure about this value static const int MIN_FONT_SIZE = 10; +// Unsure about this value static const int MAX_FONT_SIZE = 100; void DrawRecBordered(Rectangle rec, Color bg, Color border_color, int border_width); @@ -22,6 +24,7 @@ static const size_t DEFAULT_TEXT_NODE_SIZE = 256; typedef struct { void *PrevNode; void *NextNode; + char *text; size_t len; size_t cap; |
