_KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/dependencies/vui/vui.c
//
// unselects the text and moves the cursor to the furthest right selection
//
unselects the text and moves the cursor to the furthest right selection
unselects the text and moves the cursor to the furthest right selection
void _vui_text_nav_select_collapse_right() {
	uint32_t idx = _vui.input.focused_text_box.cursor_idx;
	uint32_t select_end_idx = idx + _vui.input.focused_text_box.select_offset;
	if (select_end_idx > idx) {
		_vui.input.focused_text_box.cursor_idx = select_end_idx;
	}
	_vui.input.focused_text_box.select_offset = 0;
}
void _vui_text_nav_select_collapse_right ( ) { uint32_t idx = _vui . input . focused_text_box . cursor_idx ; uint32_t select_end_idx = idx + _vui . input . focused_text_box . select_offset ; if ( select_end_idx > idx ) { _vui . input . focused_text_box . cursor_idx = select_end_idx ; } _vui . input . focused_text_box . select_offset = 0 ; }
unselects the text and moves the cursor to the furthest right selection
unselects the text and moves the cursor to the furthest right selection