[gtksourceview] SpaceDrawer: better comment in space_needs_drawing()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] SpaceDrawer: better comment in space_needs_drawing()
- Date: Sat, 23 Jul 2016 05:06:44 +0000 (UTC)
commit d11d045a478ae0564252bc5b1ae0d25db04b5eaa
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jul 23 06:25:42 2016 +0200
SpaceDrawer: better comment in space_needs_drawing()
The order is important.
gtksourceview/gtksourcespacedrawer.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/gtksourcespacedrawer.c b/gtksourceview/gtksourcespacedrawer.c
index 9eb68ae..78422f1 100644
--- a/gtksourceview/gtksourcespacedrawer.c
+++ b/gtksourceview/gtksourcespacedrawer.c
@@ -459,8 +459,7 @@ space_needs_drawing (GtkSourceSpaceDrawer *drawer,
gboolean has_tag;
gboolean needs_drawing;
- /* Check the GtkSourceTag:draw-spaces property */
-
+ /* Check the GtkSourceTag:draw-spaces property (higher priority) */
space_needs_drawing_according_to_tag (iter, &has_tag, &needs_drawing);
if (has_tag)
{
@@ -468,7 +467,6 @@ space_needs_drawing (GtkSourceSpaceDrawer *drawer,
}
/* Check the flags */
-
return (space_needs_drawing_according_to_location (drawer, iter, leading_end, trailing_start) &&
space_needs_drawing_according_to_whitespace_type (drawer, iter));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]