We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d5496 commit 8cb8991Copy full SHA for 8cb8991
src/ui/textbox/widget.cpp
@@ -1507,7 +1507,7 @@ void ekg::ui::buffering(
1507
&&
1508
!is_complete_line_selected
1509
) {
1510
- glyph_wsize += draw_font.space_wsize;
+ glyph_wsize = (glyph_wsize * !is_cursor_at_end_of_line) + draw_font.space_wsize;
1511
}
1512
1513
ekg::vec2_t<size_t> next_char_index(next_line_index.x + 1, next_line_index.y);
@@ -1534,7 +1534,7 @@ void ekg::ui::buffering(
1534
1535
1536
if (is_inline_selected) {
1537
- cursor.rect.x = pos.x;
+ cursor.rect.x = pos.x + end_cursor_position;
1538
cursor.rect.y = pos.y;
1539
cursor.rect.w = glyph_wsize;
1540
cursor.rect.h = textbox.widget.rect_text_size.h;
0 commit comments