aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-text/e-text.c1
-rw-r--r--widgets/text/e-text.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c
index 70174749f8..614c87af97 100644
--- a/widgets/e-text/e-text.c
+++ b/widgets/e-text/e-text.c
@@ -2857,6 +2857,7 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
}
}
lines --;
+ i --;
x = gdk_text_width(text->font,
lines->text,
text->selection_end - (lines->text - text->text));
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 70174749f8..614c87af97 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -2857,6 +2857,7 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
}
}
lines --;
+ i --;
x = gdk_text_width(text->font,
lines->text,
text->selection_end - (lines->text - text->text));