[gnome-builder] editorconfig: test strcmp against 0
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editorconfig: test strcmp against 0
- Date: Thu, 9 Apr 2015 21:37:46 +0000 (UTC)
commit f62e83b1abbb36fc6fb50bf3e807301be7992615
Author: Christian Hergert <christian hergert me>
Date: Thu Apr 9 14:35:50 2015 -0700
editorconfig: test strcmp against 0
Fixes spaces being interprited as tabs.
.../editorconfig/ide-editorconfig-file-settings.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/editorconfig/ide-editorconfig-file-settings.c
b/libide/editorconfig/ide-editorconfig-file-settings.c
index 3b6b799..e2a26ee 100644
--- a/libide/editorconfig/ide-editorconfig-file-settings.c
+++ b/libide/editorconfig/ide-editorconfig-file-settings.c
@@ -107,7 +107,7 @@ ide_editorconfig_file_settings_init_worker (GTask *task,
str = g_value_get_string (value);
- if (g_strcmp0 (str, "tab"))
+ if (g_strcmp0 (str, "tab") == 0)
indent_style = IDE_INDENT_STYLE_TABS;
ide_file_settings_set_indent_style (source_object, indent_style);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]