[gnome-builder/wip/libide] libide: add some exclusivity checks
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add some exclusivity checks
- Date: Sun, 8 Mar 2015 09:36:55 +0000 (UTC)
commit ea1196f0edd31ddfa17e98d0e11f68c574497f5d
Author: Christian Hergert <christian hergert me>
Date: Sun Mar 8 01:36:09 2015 -0800
libide: add some exclusivity checks
libide/ide-source-view-movements.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-source-view-movements.c b/libide/ide-source-view-movements.c
index 18e61ba..f99fed2 100644
--- a/libide/ide-source-view-movements.c
+++ b/libide/ide-source-view-movements.c
@@ -840,7 +840,8 @@ ide_source_view_movements_next_word_end (Movement *mv)
text_iter_forward_to_empty_line (©, &mv->insert);
if (gtk_text_iter_compare (©, &mv->insert) < 0)
mv->insert = copy;
- else if (!mv->exclusive && !gtk_text_iter_ends_line (&mv->insert))
+
+ if (!mv->exclusive && !gtk_text_iter_ends_line (&mv->insert))
gtk_text_iter_forward_char (&mv->insert);
}
@@ -857,6 +858,9 @@ ide_source_view_movements_next_full_word_end (Movement *mv)
text_iter_forward_to_empty_line (©, &mv->insert);
if (gtk_text_iter_compare (©, &mv->insert) < 0)
mv->insert = copy;
+
+ if (!mv->exclusive && !gtk_text_iter_ends_line (&mv->insert))
+ gtk_text_iter_forward_char (&mv->insert);
}
static void
@@ -872,6 +876,9 @@ ide_source_view_movements_next_word_start (Movement *mv)
text_iter_forward_to_empty_line (©, &mv->insert);
if (gtk_text_iter_compare (©, &mv->insert) < 0)
mv->insert = copy;
+
+ if (!mv->exclusive && !gtk_text_iter_ends_line (&mv->insert))
+ gtk_text_iter_forward_char (&mv->insert);
}
static void
@@ -887,6 +894,9 @@ ide_source_view_movements_next_full_word_start (Movement *mv)
text_iter_forward_to_empty_line (©, &mv->insert);
if (gtk_text_iter_compare (©, &mv->insert) < 0)
mv->insert = copy;
+
+ if (!mv->exclusive && !gtk_text_iter_ends_line (&mv->insert))
+ gtk_text_iter_forward_char (&mv->insert);
}
static void
@@ -904,6 +914,9 @@ ide_source_view_movements_previous_word_start (Movement *mv)
if (gtk_text_iter_backward_char (©))
if (gtk_text_iter_get_char (©) == '\n')
mv->insert = copy;
+
+ if (!mv->exclusive && !gtk_text_iter_ends_line (&mv->insert))
+ gtk_text_iter_forward_char (&mv->insert);
}
static void
@@ -921,6 +934,9 @@ ide_source_view_movements_previous_full_word_start (Movement *mv)
if (gtk_text_iter_backward_char (©))
if (gtk_text_iter_get_char (©) == '\n')
mv->insert = copy;
+
+ if (!mv->exclusive && !gtk_text_iter_ends_line (&mv->insert))
+ gtk_text_iter_forward_char (&mv->insert);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]