aboutsummaryrefslogtreecommitdiffstats
path: root/form.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:37:49 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:37:49 +0000
commit2e92ab8f6fe4714ef572e2f205b8e3bbeaa8551a (patch)
treedf1c80274d62481e6254607e55c06b98697648e1 /form.c
parent[w3m-dev 02757] (diff)
downloadw3m-2e92ab8f6fe4714ef572e2f205b8e3bbeaa8551a.tar.gz
w3m-2e92ab8f6fe4714ef572e2f205b8e3bbeaa8551a.zip
[w3m-dev 02759] fold textarea
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--form.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/form.c b/form.c
index d4a5556..825189d 100644
--- a/form.c
+++ b/form.c
@@ -1,4 +1,4 @@
-/* $Id: form.c,v 1.8 2001/12/26 18:29:33 ukai Exp $ */
+/* $Id: form.c,v 1.9 2001/12/27 17:37:49 ukai Exp $ */
/*
* HTML forms
*/
@@ -358,8 +358,10 @@ formUpdateBuffer(Anchor *a, Buffer *buf, FormItemList *form)
}
}
if (rows > 1) {
- while (p[j] && p[j] != '\r' && p[j] != '\n')
- j++;
+ if (! FoldTextarea) {
+ while (p[j] && p[j] != '\r' && p[j] != '\n')
+ j++;
+ }
if (p[j] == '\r')
j++;
if (p[j] == '\n')