Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
93d1c310
Commit
93d1c310
authored
Oct 16, 2015
by
Jonathan Wilkes
Browse files
remove old commands for updating cursor position inside a box being edited
parent
fd3f35d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_rtext.c
View file @
93d1c310
...
...
@@ -404,19 +404,19 @@ static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
{
if
(
selend_b
>
selstart_b
)
{
sys_vgui
(
".x%lx.c select from %s %d
\n
"
,
canvas
,
x
->
x_tag
,
u8_charnum
(
tempbuf
,
selstart_b
));
sys_vgui
(
".x%lx.c select to %s %d
\n
"
,
canvas
,
x
->
x_tag
,
u8_charnum
(
tempbuf
,
selend_b
)
+
(
sys_oldtclversion
?
0
:
-
1
));
sys_vgui
(
".x%lx.c focus
\"\"\n
"
,
canvas
);
//
sys_vgui(".x%lx.c select from %s %d\n", canvas,
//
x->x_tag, u8_charnum(tempbuf, selstart_b));
//
sys_vgui(".x%lx.c select to %s %d\n", canvas,
//
x->x_tag, u8_charnum(tempbuf, selend_b)
//
+ (sys_oldtclversion ? 0 : -1));
//
sys_vgui(".x%lx.c focus \"\"\n", canvas);
}
else
{
sys_vgui
(
".x%lx.c select clear
\n
"
,
canvas
);
sys_vgui
(
".x%lx.c icursor %s %d
\n
"
,
canvas
,
x
->
x_tag
,
u8_charnum
(
tempbuf
,
selstart_b
));
sys_vgui
(
".x%lx.c focus %s
\n
"
,
canvas
,
x
->
x_tag
);
//
sys_vgui(".x%lx.c select clear\n", canvas);
//
sys_vgui(".x%lx.c icursor %s %d\n", canvas, x->x_tag,
//
u8_charnum(tempbuf, selstart_b));
//
sys_vgui(".x%lx.c focus %s\n", canvas, x->x_tag);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment