From 6f40e7ff409d952692ae79abaa21ddff505c9f1b Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Mon, 19 Apr 2021 23:57:39 -0400 Subject: [PATCH] clean up debug print --- editor/imstate.fnl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/imstate.fnl b/editor/imstate.fnl index 7efd612..e9f8277 100644 --- a/editor/imstate.fnl +++ b/editor/imstate.fnl @@ -227,7 +227,7 @@ (local row-h (+ (style.font:get_height) style.padding.y)) (local new-selection (and (focused? view tag) view.imstate.focus.selection)) (local focused-h (if (focused? view tag) (* row-h (+ (length options) 1)) row-h)) - (print new-selection (focused? view tag) focused-h view.imstate.active) + (when new-selection (set view.imstate.focus nil)) (renderer.draw_rect x y w row-h style.selection) @@ -241,7 +241,6 @@ (renderer.draw_rect x row-y w row-h style.selection) (renderer.draw_text style.font option (+ x style.padding.x) (+ row-y (/ style.padding.y 2)) style.text) (when (button view [(make-tag tag) i] x row-y w row-h) - (print "selected" option) (set view.imstate.focus.selection option)) (set row-y (+ row-y row-h)))))