fix top of buffer bug
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 5 May 2001 17:39:11 +0000 (17:39 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 5 May 2001 17:39:11 +0000 (17:39 +0000)
ChangeLog.claws
src/gtkstext.c

index 6b93c93e53c8293923e50f944b975bc3d23776cd..794697fabebecde7dfb2817a83f9327e638d6718 100644 (file)
@@ -1,6 +1,7 @@
 2001-05-04 [alfons]
 
-       * src/gtkstext.c: removed adding back / forward lines to cache
+       * src/gtkstext.c: fix top of buffer bug, 
+               removed adding back / forward lines to cache
 
 2001-05-04 [sergey]
 
index c6605ea90a5c11256f8353d38e8d597e6fd51543..2e29e6e222748b85b438e8239c4678975fa53165 100644 (file)
@@ -4266,7 +4266,9 @@ static void move_cursor_to_display_row_up(GtkSText *text)
 
        /* top of buffer */
        if (mark.index == 0) {
-               XDEBUG ( ("%s(%d) top of buffer", __FILE__, __LINE__) );        
+               /* this is a quick fix */
+               XDEBUG ( ("%s(%d) top of buffer", __FILE__, __LINE__) );
+               gtk_stext_set_position_X(GTK_EDITABLE(text), 0);                
                return;
        }