aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-05 15:56:11 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-05 15:56:11 +0000
commit825018b1ba393cdf28825d5b722b1bc8148882ae (patch)
tree98fbdc7decc17d0cde3aa70c9b752e18aaf89f7e /main.c
parent[w3m-dev 03371] segmentation fault by large complex table. (diff)
downloadw3m-825018b1ba393cdf28825d5b722b1bc8148882ae.tar.gz
w3m-825018b1ba393cdf28825d5b722b1bc8148882ae.zip
[w3m-dev 03373] setting form on loading
* config.h.dist (PRE_FORM_FILE): added * configure (PRE_FORM_FILE): added * etc.c (openPasswdFile): define by openSecretFile() (openSecretFile): renamed, not static * file.c (loadGeneralFile): preFOrmUpdateBuffer() * fm.h (Buffer): add submit (pre_form_file): added * form.c (struct pre_form_item): added (struct pre_form): added (next_token): added (PreForm): added (add_pre_form): added (add_pre_form_item): added (loadPreForm): added (preFormUpdateBuffer): added * frame.c (renderFrame): add preFormUpdateBuffer() * main.c (MAIN): buf->submit check * proto.h (preFormUpdateBuffer): added (openSecretFile): added (loadPreForm): added * rc.c (sync_with_option): add loadPreForm() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7057f04..5f0b299 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.116 2002/10/30 17:03:27 ukai Exp $ */
+/* $Id: main.c,v 1.117 2002/11/05 15:56:13 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -949,6 +949,13 @@ MAIN(int argc, char **argv, char **envp)
}
onA();
for (;;) {
+ if (Currentbuf->submit) {
+ Anchor *a = Currentbuf->submit;
+ Currentbuf->submit = NULL;
+ gotoLine(Currentbuf, a->start.line);
+ Currentbuf->pos = a->start.pos;
+ _followForm(TRUE);
+ }
/* event processing */
if (n_event_queue > 0) {
for (i = 0; i < n_event_queue; i++) {