aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/e-text/gal-a11y-e-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'a11y/e-text/gal-a11y-e-text.c')
-rw-r--r--a11y/e-text/gal-a11y-e-text.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/a11y/e-text/gal-a11y-e-text.c b/a11y/e-text/gal-a11y-e-text.c
index 06fe40d41b..be7835e17d 100644
--- a/a11y/e-text/gal-a11y-e-text.c
+++ b/a11y/e-text/gal-a11y-e-text.c
@@ -801,10 +801,11 @@ et_set_caret_offset (AtkText *text,
if (offset < -1)
return FALSE;
else {
+ ETextEventProcessorCommand command;
+
if (offset == -1)
offset = et_get_character_count (text);
- ETextEventProcessorCommand command;
command.action = E_TEP_MOVE;
command.position = E_TEP_VALUE;
command.value = offset;