Mercurial > dwindows
diff gtk3/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 | f1c7b03f944d |
children | 4ef0e878fe06 |
line wrap: on
line diff
--- a/gtk3/dw.c Sat May 07 20:04:34 2011 +0000 +++ b/gtk3/dw.c Sat May 07 20:17:06 2011 +0000 @@ -4366,9 +4366,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); } } DW_MUTEX_UNLOCK;