qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs dired.c bufed.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs dired.c bufed.c
Date: Tue, 11 Mar 2014 19:36:01 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/03/11 19:36:00

Modified files:
        .              : dired.c bufed.c 

Log message:
        fix dired bug on first entry
        
        * add missing initialization, prevented display of first file in list
        * fix same bug in bufed

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/dired.c?cvsroot=qemacs&r1=1.40&r2=1.41
http://cvs.savannah.gnu.org/viewcvs/qemacs/bufed.c?cvsroot=qemacs&r1=1.26&r2=1.27

Patches:
Index: dired.c
===================================================================
RCS file: /sources/qemacs/qemacs/dired.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -b -r1.40 -r1.41
--- dired.c     3 Mar 2014 23:24:09 -0000       1.40
+++ dired.c     11 Mar 2014 19:36:00 -0000      1.41
@@ -96,7 +96,7 @@
     if (!(ds = dired_get_state(s, 1)))
         return NULL;
 
-    /* CG: assuming buf_size > 0 */
+    if (buf_size > 0)
     buf[0] = '\0';
 
     if (index < 0)
@@ -576,6 +576,7 @@
 
         ds->signature = &dired_signature;
         ds->sort_mode = DIRED_SORT_GROUP | DIRED_SORT_NAME;
+        ds->last_index = -1;
 
         s->b->priv_data = ds;
         s->b->close = dired_close;

Index: bufed.c
===================================================================
RCS file: /sources/qemacs/qemacs/bufed.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- bufed.c     3 Mar 2014 23:21:07 -0000       1.26
+++ bufed.c     11 Mar 2014 19:36:00 -0000      1.27
@@ -363,6 +363,7 @@
             return -1;
 
         bs->signature = &bufed_signature;
+        bs->last_index = -1;
         s->b->priv_data = bs;
         s->b->close = bufed_close;
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]