[gnome-builder/wip/libide] libide: use count in indent operation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: use count in indent operation
- Date: Fri, 6 Mar 2015 21:56:13 +0000 (UTC)
commit 0fdabf3865d5c3e2f1a5f2147d2f026070a1c16e
Author: Christian Hergert <christian hergert me>
Date: Fri Mar 6 13:53:40 2015 -0800
libide: use count in indent operation
libide/ide-source-view.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index 5fe3387..b45bc2e 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -1722,6 +1722,7 @@ static void
ide_source_view_real_indent_selection (IdeSourceView *self,
gint level)
{
+ IdeSourceViewPrivate *priv = ide_source_view_get_instance_private (self);
GtkSourceView *source_view = (GtkSourceView *)self;
GtkTextBuffer *buffer;
GtkTextIter iter;
@@ -1729,13 +1730,11 @@ ide_source_view_real_indent_selection (IdeSourceView *self,
g_return_if_fail (IDE_IS_SOURCE_VIEW (self));
-#if 0
/*
* Use count to increase direction.
*/
if (priv->count)
level = priv->count * ((level > 0) ? 1 : -1);
-#endif
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]