[vte] vteapp: Fix --cursor-shape thinko



commit e72d7ed4da9d065afc494da304741ca5484b1f9b
Author: Christian Persch <chpe gnome org>
Date:   Thu Dec 3 18:35:50 2009 +0100

    vteapp: Fix --cursor-shape thinko

 src/vteapp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index 15b7732..d5a90ca 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -786,9 +786,9 @@ main(int argc, char **argv)
 	if (cursor_set) {
 		vte_terminal_set_color_cursor(terminal, &cursor);
 	}
-        if (g_strcmp0(cursor_shape, "underline")) {
+        if (g_strcmp0(cursor_shape, "underline") == 0) {
                 vte_terminal_set_cursor_shape(terminal, VTE_CURSOR_SHAPE_UNDERLINE);
-        } else if (g_strcmp0(cursor_shape, "underline")) {
+        } else if (g_strcmp0(cursor_shape, "ibeam") == 0) {
                 vte_terminal_set_cursor_shape(terminal, VTE_CURSOR_SHAPE_IBEAM);
         } else {
                 vte_terminal_set_cursor_shape(terminal, VTE_CURSOR_SHAPE_BLOCK);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]