Revision: 10324 https://osdn.net/projects/ttssh2/scm/svn/commits/10324 Author: zmatsuo Date: 2022-10-18 00:19:42 +0900 (Tue, 18 Oct 2022) Log Message: ----------- 行末で文字のセル数が増加したとき文字を壊していたので修正 ticket #44424 Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/44424 Modified Paths: -------------- trunk/teraterm/teraterm/buffer.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/buffer.c =================================================================== --- trunk/teraterm/teraterm/buffer.c 2022-10-17 15:19:33 UTC (rev 10323) +++ trunk/teraterm/teraterm/buffer.c 2022-10-17 15:19:42 UTC (rev 10324) @@ -2866,13 +2866,16 @@ StrChangeCount++; } - // \x83J\x81[\x83\\x83\x8B\x88ʒu\x82̕\xB6\x8E\x9A\x82\xCD padding\x82ɂ\xB7\x82\xE9 - BuffSetChar(&CodeLineW[CursorX], 0, 'H'); - CodeLineW[CursorX].Padding = TRUE; - CodeLineW[CursorX].attr = Attr.Attr; - CodeLineW[CursorX].attr2 = Attr.Attr2; - CodeLineW[CursorX].fg = Attr.Fore; - CodeLineW[CursorX].bg = Attr.Back; + // \x83J\x81[\x83\\x83\x8B\x88ʒu\x82̕\xB6\x8E\x9A\x82\xCD Padding\x82ɂ\xB7\x82\xE9 + // \x82\xBD\x82\xBE\x82\xB5\x8Ds\x96\x96\x82̂Ƃ\xAB\x82\xCDPadding\x82\xF0\x93\xFC\x82\xEA\x82Ȃ\xA2 + if (CursorX < NumOfColumns - 1) { + BuffSetChar(&CodeLineW[CursorX], 0, 'H'); + CodeLineW[CursorX].Padding = TRUE; + CodeLineW[CursorX].attr = Attr.Attr; + CodeLineW[CursorX].attr2 = Attr.Attr2; + CodeLineW[CursorX].fg = Attr.Fore; + CodeLineW[CursorX].bg = Attr.Back; + } } // \x91O\x82̕\xB6\x8E\x9A\x82ɂ\xAD\x82\xC1\x82\xAF\x82\xE9