Mercurial > dwindows
diff gtk/dw.c @ 998:f019c5e8511f
Fixed GTK reporting wrong character and line counts. 1000 revisions!!!
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 07 May 2011 20:17:06 +0000 |
parents | 98d73c9e81fc |
children | 08b7e8d7cbb3 |
line wrap: on
line diff
--- a/gtk/dw.c Sat May 07 20:04:34 2011 +0000 +++ b/gtk/dw.c Sat May 07 20:17:06 2011 +0000 @@ -4838,9 +4838,9 @@ GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(tmp)); if(bytes) - *bytes = gtk_text_buffer_get_char_count(buffer) + 1; + *bytes = gtk_text_buffer_get_char_count(buffer); if(lines) - *lines = gtk_text_buffer_get_line_count(buffer) + 1; + *lines = gtk_text_buffer_get_line_count(buffer); } } #else