aboutsummaryrefslogtreecommitdiffstats
path: root/linein.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-04-06 16:27:53 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-04-06 16:27:53 +0000
commita603190b2e1702537f859a648eb5e2b6910ff2e4 (patch)
tree6ae3da1ae67bc54359266d1939ca98395e32ec54 /linein.c
parent[w3m-dev 03838] W3M_LIBS splitted from LIBS (diff)
downloadw3m-a603190b2e1702537f859a648eb5e2b6910ff2e4.tar.gz
w3m-a603190b2e1702537f859a648eb5e2b6910ff2e4.zip
[w3m-dev 03843] cleanup macros
* config.h.dist config.h.in etc.c file.c fm.h ftp.c linein.c main.c rc.c: delete EMACS_LIKE_LINEEDIT, VI_PREC_NUM, LABEL_TOPLINE, NEXTPAGE_TOPLINE, FTPPASS_HOSTNAMEGEN use_mark default FALSE emacs_like_lineedit default FALSE vi_prec_num default FALSE add UseHistory, use_history * NEWS: rc: use_history From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'linein.c')
-rw-r--r--linein.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/linein.c b/linein.c
index 502fcab..17ce936 100644
--- a/linein.c
+++ b/linein.c
@@ -1,4 +1,4 @@
-/* $Id: linein.c,v 1.29 2003/03/06 14:31:22 ukai Exp $ */
+/* $Id: linein.c,v 1.30 2003/04/06 16:27:54 ukai Exp $ */
#include "fm.h"
#include "local.h"
#include "myctype.h"
@@ -201,29 +201,21 @@ inputLineHistSearch(char *prompt, char *def_str, int flag, Hist *hist,
if (!i_quote &&
(((cm_mode & CPL_ALWAYS) && (c == CTRL_I || c == ' ')) ||
((cm_mode & CPL_ON) && (c == CTRL_I)))) {
-#ifdef EMACS_LIKE_LINEEDIT
if (emacs_like_lineedit && cm_next) {
_dcompl();
need_redraw = TRUE;
}
else {
-#endif
_compl();
cm_disp_next = -1;
-#ifdef EMACS_LIKE_LINEEDIT
}
-#endif
}
else if (!i_quote && CLen == CPos &&
(cm_mode & CPL_ALWAYS || cm_mode & CPL_ON) && c == CTRL_D) {
-#ifdef EMACS_LIKE_LINEEDIT
if (!emacs_like_lineedit) {
-#endif
_dcompl();
need_redraw = TRUE;
-#ifdef EMACS_LIKE_LINEEDIT
}
-#endif
}
else if (!i_quote && c == DEL_CODE) {
_bs();
@@ -456,24 +448,19 @@ _esc(void)
break;
case CTRL_I:
case ' ':
-#ifdef EMACS_LIKE_LINEEDIT
if (emacs_like_lineedit) {
_rdcompl();
cm_clear = FALSE;
need_redraw = TRUE;
}
else
-#endif
_rcompl();
break;
case CTRL_D:
-#ifdef EMACS_LIKE_LINEEDIT
if (!emacs_like_lineedit)
-#endif
_rdcompl();
need_redraw = TRUE;
break;
-#ifdef EMACS_LIKE_LINEEDIT
case 'f':
if (emacs_like_lineedit)
_mvRw();
@@ -486,7 +473,6 @@ _esc(void)
if (emacs_like_lineedit)
_bsw();
break;
-#endif
#ifdef JP_CHARSET
case '$':
/* ISO-2022-jp characters */
@@ -865,11 +851,9 @@ next_dcompl(int next)
move(y, 0);
clrtoeolx();
bold();
-#ifdef EMACS_LIKE_LINEEDIT
if (emacs_like_lineedit)
addstr("----- Press TAB to continue -----");
else
-#endif
addstr("----- Press CTRL-D to continue -----");
boldend();
}