• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Tera Termの個人的な作業用リポジトリ


Commit MetaInfo

修订版113189118d367b06edd79e2880e51ab4fcaa75f6 (tree)
时间2020-04-26 00:58:44
作者zmatsuo <zmatsuo@user...>
Commiterzmatsuo

Log Message

改行コード変換時先頭の文字をコピーしていなかった

- NormalizeLineBreakW()

git-svn-id: svn+ssh://svn.osdn.net/svnroot/ttssh2/trunk@8737 f5f01b69-1e22-0410-acbf-894ab4bd6246

更改概述

差异

--- a/teraterm/teraterm/clipboar.c
+++ b/teraterm/teraterm/clipboar.c
@@ -125,7 +125,10 @@ static void TrimTrailingNLW(wchar_t *src)
125125 }
126126 }
127127
128-
128+/**
129+ * 改行コードを CR+LF に変換する
130+ * @return 変換された文字列
131+ */
129132 static wchar_t *NormalizeLineBreakW(const wchar_t *src_)
130133 {
131134 const wchar_t *src = src_;
@@ -159,7 +162,6 @@ static wchar_t *NormalizeLineBreakW(const wchar_t *src_)
159162 src = src_ + len - 1;
160163 dest = dest_top + need_len;
161164 *dest-- = '\0';
162- len = need_len;
163165
164166 while (len > 0 && dest_top <= dest) {
165167 if (*src == LF) {
@@ -170,12 +172,7 @@ static wchar_t *NormalizeLineBreakW(const wchar_t *src_)
170172 }
171173 if (*src != CR) {
172174 *dest-- = CR;
173- if (dest <= dest_top) {
174- break;
175- }
176- else {
177- continue;
178- }
175+ continue;
179176 }
180177 }
181178 else if (*src == CR) {