[anjuta] indentation-c-style: Fix logic error from e27cade3ec1ce883182ff1b99637d781ae6b128c
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] indentation-c-style: Fix logic error from e27cade3ec1ce883182ff1b99637d781ae6b128c
- Date: Sat, 24 Nov 2012 10:43:22 +0000 (UTC)
commit cc56de9b790786410cb9e89619011329ff752505
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Fri Nov 23 19:48:27 2012 +0100
indentation-c-style: Fix logic error from e27cade3ec1ce883182ff1b99637d781ae6b128c
We should stop the loop when the number of left braces are more than or equal to the number
of right braces.
https://bugzilla.gnome.org/show_bug.cgi?id=688610
plugins/indentation-c-style/indentation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/indentation-c-style/indentation.c b/plugins/indentation-c-style/indentation.c
index b3df553..aeafd5d 100644
--- a/plugins/indentation-c-style/indentation.c
+++ b/plugins/indentation-c-style/indentation.c
@@ -149,7 +149,7 @@ get_line_indentation (IAnjutaEditor *editor, gint line_num)
/* Find the line which contains the left brace matching last right brace on current line */
if (right_braces > 0)
{
- while (right_braces >= left_braces && line_num >= 0)
+ while (right_braces > left_braces && line_num >= 0)
{
line_num--;
g_object_unref (line_end);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]