From 63efdd312b0b256cb5d4a6b8ed08f55bb6d92c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 21 Dec 2006 20:47:31 +0000 Subject: [PATCH] Start column count from 0 in the statusbar display. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1140 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 1 + src/ui_utils.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 36e61306..490f1db8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ Updated date in documentation and manpage. * src/callbacks.c: Fixed wrong paste behaviour under Windows with some applications. + * src/ui_utils.c: Start column count from 0 in the statusbar display. 2006-12-20 Enrico Tröger diff --git a/src/ui_utils.c b/src/ui_utils.c index 8216bc24..5df79215 100644 --- a/src/ui_utils.c +++ b/src/ui_utils.c @@ -113,7 +113,7 @@ void ui_update_statusbar(gint idx, gint pos) text = g_strdup_printf(_("%c line: % 4d column: % 3d selection: % 4d %s mode: %s%s cur. function: %s encoding: %s %s filetype: %s"), (doc_list[idx].changed) ? 42 : 32, - (line + 1), (col + 1), + (line + 1), col, sci_get_selected_text_length(doc_list[idx].sci) - 1, sci_get_overtype(doc_list[idx].sci) ? _("OVR") : _("INS"), document_get_eol_mode(idx),