colourpicker

Simple Colour Picker written in C
git clone anongit@rnpnr.xyz:colourpicker.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 9040ae9f6f9e3fe4f726d006a02a22f8a4277054
Parent: b79ab936e56e0ae1880b91331cc84894ab1a74fa
Author: Randy Palamar
Date:   Sat, 17 Aug 2024 10:18:27 -0600

actually decrease the buf_len when delete is pressed

Diffstat:
Mcolourpicker.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/colourpicker.c b/colourpicker.c @@ -428,6 +428,7 @@ do_text_input(ColourPickerCtx *ctx, Rect r, Color colour, i32 max_disp_chars) mem_move(ctx->is.buf + ctx->is.cursor + 1, ctx->is.buf + ctx->is.cursor, ctx->is.buf_len - ctx->is.cursor); + ctx->is.buf_len--; } if (IsKeyPressed(KEY_ENTER)) {