[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: |
Wed, 16 Sep 2015 12:40:59 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 15/09/16 12:40:59
Modified files:
. : qe.c
Log message:
fix compilation issues
- keyword order for inline functions
- track qs->active_window at load time
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.c?cvsroot=qemacs&r1=1.213&r2=1.214
Patches:
Index: qe.c
===================================================================
RCS file: /sources/qemacs/qemacs/qe.c,v
retrieving revision 1.213
retrieving revision 1.214
diff -u -b -r1.213 -r1.214
--- qe.c 10 Sep 2015 00:25:24 -0000 1.213
+++ qe.c 16 Sep 2015 12:40:58 -0000 1.214
@@ -5557,8 +5557,9 @@
if (c == '/') {
if (eb_match_string_reverse(s->b, offset, "http:", &stop)
|| eb_match_string_reverse(s->b, offset, "https:", &stop)
- || eb_match_string_reverse(s->b, offset, "ftp:", &stop))
- ;
+ || eb_match_string_reverse(s->b, offset, "ftp:", &stop)) {
+ /* nothing, stop already updated */
+ }
eb_delete(s->b, 0, stop);
}
}
@@ -8094,8 +8095,10 @@
_optind = parse_command_line(argc, argv);
/* load config file unless command line option given */
- if (!no_init_file)
+ if (!no_init_file) {
do_load_config_file(s, NULL);
+ s = qs->active_window;
+ }
qe_key_init(&key_ctx);
@@ -8122,8 +8125,10 @@
qe_event_init();
#ifndef CONFIG_TINY
- if (use_session_file)
+ if (use_session_file) {
session_loaded = !qe_load_session(s);
+ s = qs->active_window;
+ }
#endif
do_refresh(s);
@@ -8137,11 +8142,13 @@
if (*arg == '+' && i < argc) {
if (strequal(arg, "+eval")) {
do_eval_expression(s, argv[i++]);
+ s = qs->active_window;
continue;
}
if (strequal(arg, "+load")) {
/* load script file */
parse_config_file(s, argv[i++]);
+ s = qs->active_window;
continue;
}
/* Handle +linenumber[,column] before file */
@@ -8151,14 +8158,16 @@
arg = argv[i++];
}
do_find_file(s, arg, 0);
+ s = qs->active_window;
if (line_num)
- do_goto_line(qs->active_window, line_num, col_num);
+ do_goto_line(s, line_num, col_num);
}
#if !defined(CONFIG_TINY) && !defined(CONFIG_WIN32)
if (is_player && !session_loaded && (_optind >= argc ||
S_ISDIR(s->b->st_mode))) {
/* if player, go to directory mode by default if no file selected */
do_dired(s);
+ s = qs->active_window;
}
#endif
- [Qemacs-commit] qemacs qe.c,
Charlie Gordon <=