From: mogami Date: Mon, 3 Nov 2003 08:54:27 +0000 (+0000) Subject: DELETE・ュ。シシォツホ、ホニーコ釥ャ。「タ霪ホ・ミ・ー、テ、ソBACKSPACE、ホ・ウ。シ・ノ、ヒーヘツク、キ、ニ、、、ニ。「ニー、ォ、ハ、ッ、ハ、テ... X-Git-Tag: v2.1.2~915 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9c08a4865a38f5f618b691627ccc02f6268bb2a0;p=hengband%2Fhengband.git DELETE・ュ。シシォツホ、ホニーコ釥ャ。「タ霪ホ・ミ・ー、テ、ソBACKSPACE、ホ・ウ。シ・ノ、ヒーヘツク、キ、ニ、、、ニ。「ニー、ォ、ハ、ッ、ハ、テ、ニ、、、ソ、ホ、ヌコニス、タオ。」 --- diff --git a/src/autopick.c b/src/autopick.c index 74ee0ee64..7e0cbba0b 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -5372,8 +5372,11 @@ static bool do_editor_command(text_body_type *tb, int com_id) } case EC_DELETE_CHAR: + { /* DELETE == go forward + BACK SPACE */ + int len; + /* Ignore selection */ if (tb->mark) { @@ -5388,8 +5391,25 @@ static bool do_editor_command(text_body_type *tb, int com_id) #endif tb->cx++; + /* Pass through the end of line to next line */ + len = strlen(tb->lines_list[tb->cy]); + if (len < tb->cx) + { + if (tb->lines_list[tb->cy + 1]) + { + tb->cy++; + tb->cx = 0; + } + else + { + tb->cx = len; + break; + } + } + do_editor_command(tb, EC_BACKSPACE); break; + } case EC_BACKSPACE: {