[gimp] Don't go to the end of the line if we are already there
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Don't go to the end of the line if we are already there
- Date: Tue, 23 Jun 2009 08:07:28 -0400 (EDT)
commit cfbfb4a6c04652dfcc9e66fc907b195c1c96d9db
Author: Michael Natterer <mitch gimp org>
Date: Tue Jun 23 14:05:50 2009 +0200
Don't go to the end of the line if we are already there
(gimp_text_tool_move_cursor): for GTK_MOVEMENT_DISPLAY_LINE_ENDS,
check if we are an the end of a line, or the cursor will end up on the
end of the next line.
app/tools/gimptexttool.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index a84a4dc..b7ca20c 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1602,7 +1602,8 @@ gimp_text_tool_move_cursor (GimpTextTool *text_tool,
}
else if (count > 0)
{
- gtk_text_iter_forward_to_line_end (&cursor);
+ if (! gtk_text_iter_ends_line (&cursor))
+ gtk_text_iter_forward_to_line_end (&cursor);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]