[Geany-devel] [Patch] - Add document length to status bar statistics

Can Koy cankoy at xxxxx
Thu Feb 25 11:34:24 UTC 2010


The following patch shows on status bar the number of lines in current document.

Index: src/ui_utils.c
===================================================================
--- src/ui_utils.c	(revision 4704)
+++ src/ui_utils.c	(working copy)
 -187,8 +187,8 @@
 			col = 0;
 
 		/* Status bar statistics: col = column, sel = selection. */
-		g_string_printf(stats_str, _("line: %d\t col: %d\t sel: %d\t "),
-			(line + 1), col,
+		g_string_printf(stats_str, _("line: %d / %d\t col: %d\t sel: %d\t "),
+			(line + 1), sci_get_line_count(doc->editor->sci), col,
 			sci_get_selected_text_length(doc->editor->sci) - 1);
 
 		g_string_append(stats_str,


      




More information about the Devel mailing list