[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs qe.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs qe.c |
Date: |
Tue, 15 Apr 2014 07:58:49 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 14/04/15 07:58:49
Modified files:
. : qe.c
Log message:
use dired mode when starting qemacs with directory argument
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.c?cvsroot=qemacs&r1=1.165&r2=1.166
Patches:
Index: qe.c
===================================================================
RCS file: /sources/qemacs/qemacs/qe.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -b -r1.165 -r1.166
--- qe.c 13 Apr 2014 14:45:23 -0000 1.165
+++ qe.c 15 Apr 2014 07:58:49 -0000 1.166
@@ -8003,7 +8003,7 @@
}
#if !defined(CONFIG_TINY) && !defined(CONFIG_WIN32)
- if (is_player && _optind >= argc) {
+ if (is_player && (_optind >= argc || S_ISDIR(s->b->st_mode))) {
/* if player, go to directory mode by default if no file selected */
do_dired(s);
}