$B:dK\$G$9!#(B
>> $B2,ED$G$9!#(B
>> ---- tab.txt
>> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
>> ---- tab.txt
>> $B$H$$$&$U$&$K(B TAB $B$,F~$C$?%F%-%9%H$r(B w3m $B$KFI$_$3$^$;$^$9!#C<Kv$O2#(B 80
>> $B7e$H$7$^$9!#(B'l' $B$G$I$s$I$s1&$K0\F0$7$^$9!#$9$k$H(B 10 $B$N<!$,!"2?8N$+(B 3
>> $B$N2#$K$-$F$7$^$$$^$9!#$5$i$K1&$K$$$/$H(B 11 $B$N(B 1 $B$N0L$N$H$3$m$K%+!<%=%k(B
>> $B$,$-$^$9!#(B
>> $B$^$?!"(BMOVE_RIGHT 'l' $B$G$O$J$/!"(BRIGHT(keymap.default $B$G$O(B '.')$B$G1&$K$:(B
>> $B$i$7$F$$$/$H!"%+!<%=%k$,>!<j$K?J$s$G$$$C$F$7$^$$$^$9!#$5$i$K!"(B15 $B$N$H(B
>> $B$3$m$G!"1&$K$:$i$9$H(B 1 $B$KLa$C$F$7$^$$!"(BRIGHT $B$d(B LEFT $B$,0l@Z8z$+$J$/$J(B
>> $B$j$^$9!#(B
$B=$@5$7$F$_$^$7$?!#(B
$B!t(B $B4{$K2,It$5$s$,Ce<j$5$l$F$$$k$+$b$7$l$^$;$s$,!#(B
'l' $B$O(B w3m-i18n $B$G$OD>$7$F$$$^$7$?!#Js9p$rK:$l$F$$$?$_$?$$$G$9(Bm(_o_)m
-----------------------------------
$B:dK\(B $B9@B'(B <hsaka@mth.biglobe.ne.jp>
http://www2u.biglobe.ne.jp/~hsaka/
diff -u main.c.orig main.c
--- main.c.orig Fri May 26 22:17:45 2000
+++ main.c Fri May 26 22:49:44 2000
@@ -1107,8 +1107,8 @@
else
#endif /* JP_CHARSET */
delta = 1;
- if (buf->currentColumn == buf->pos)
- buf->pos += delta;
+ if (buf->visualpos == 0)
+ buf->pos = MIN(l->len - 1, buf->pos + delta);
columnSkip(Currentbuf, 1);
arrangeCursor(Currentbuf);
diff -u display.c.orig display.c
--- display.c.orig Fri May 26 22:21:45 2000
+++ display.c Fri May 26 22:32:56 2000
@@ -736,7 +736,8 @@
cursorRight(Buffer * buf)
{
int i,
- delta = 1;
+ delta = 1,
+ cpos;
Line *l = buf->currentLine;
Lineprop *p;
@@ -748,13 +749,16 @@
if (CharType(p[i]) == PC_KANJI1)
delta = 2;
#endif /* JP_CHARSET */
- if (i >= buf->currentLine->len - delta)
+ if (i + delta >= l->len)
return;
- if (buf->visualpos >= COLS - delta)
- columnSkip(buf, COLS / 2);
- buf->visualpos = COLPOS(l, i + delta) - buf->currentColumn;
+ buf->pos = i + delta;
+ cpos = COLPOS(l, buf->pos);
+ buf->visualpos = cpos - buf->currentColumn;
+ if (buf->visualpos >= COLS) {
+ columnSkip(buf, (COLS/2));
+ buf->visualpos = cpos - buf->currentColumn;
+ }
buf->cursorX = buf->visualpos;
- buf->pos += delta;
}
void
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:56 CDT