[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs dired.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs dired.c |
Date: |
Tue, 25 Mar 2008 11:02:53 +0000 |
CVSROOT: /cvsroot/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 08/03/25 11:02:53
Modified files:
. : dired.c
Log message:
fixed buffer read-only mode in dired_mark
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/dired.c?cvsroot=qemacs&r1=1.20&r2=1.21
Patches:
Index: dired.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/dired.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- dired.c 8 Jan 2008 16:37:54 -0000 1.20
+++ dired.c 25 Mar 2008 11:02:52 -0000 1.21
@@ -167,7 +167,10 @@
dip = item->opaque;
ch = dip->mark = mark;
- eb_write(s->b, dip->offset, &ch, 1);
+ do_bol(s);
+ s->b->flags &= ~BF_READONLY;
+ eb_write(s->b, s->offset, &ch, 1);
+ s->b->flags |= BF_READONLY;
text_move_up_down(s, 1);
}
- [Qemacs-commit] qemacs dired.c,
Charlie Gordon <=