Skip to content
Snippets Groups Projects
Commit 93d1c310 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

remove old commands for updating cursor position inside a box being edited

parent fd3f35d4
No related branches found
No related tags found
No related merge requests found
...@@ -404,19 +404,19 @@ static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp, ...@@ -404,19 +404,19 @@ static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
{ {
if (selend_b > selstart_b) if (selend_b > selstart_b)
{ {
sys_vgui(".x%lx.c select from %s %d\n", canvas, //sys_vgui(".x%lx.c select from %s %d\n", canvas,
x->x_tag, u8_charnum(tempbuf, selstart_b)); // x->x_tag, u8_charnum(tempbuf, selstart_b));
sys_vgui(".x%lx.c select to %s %d\n", canvas, //sys_vgui(".x%lx.c select to %s %d\n", canvas,
x->x_tag, u8_charnum(tempbuf, selend_b) // x->x_tag, u8_charnum(tempbuf, selend_b)
+ (sys_oldtclversion ? 0 : -1)); // + (sys_oldtclversion ? 0 : -1));
sys_vgui(".x%lx.c focus \"\"\n", canvas); //sys_vgui(".x%lx.c focus \"\"\n", canvas);
} }
else else
{ {
sys_vgui(".x%lx.c select clear\n", canvas); //sys_vgui(".x%lx.c select clear\n", canvas);
sys_vgui(".x%lx.c icursor %s %d\n", canvas, x->x_tag, //sys_vgui(".x%lx.c icursor %s %d\n", canvas, x->x_tag,
u8_charnum(tempbuf, selstart_b)); // u8_charnum(tempbuf, selstart_b));
sys_vgui(".x%lx.c focus %s\n", canvas, x->x_tag); //sys_vgui(".x%lx.c focus %s\n", canvas, x->x_tag);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment