OSDN Git Service

fix #42072
authorSHIRAKATA Kentaro <argrath@ub32.org>
Thu, 20 May 2021 11:05:34 +0000 (20:05 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Thu, 20 May 2021 19:16:45 +0000 (04:16 +0900)
ChangeLog.j
sys/winnt/nttty.c

index 0ccb3cf..bc5c061 100644 (file)
@@ -1,5 +1,6 @@
        * \8e\9f\82Ì\96â\91è\82ð\8fC\90³
          * rumors\82Ì\96\96\94ö\82É\83S\83~\82ª\95\\8e¦\82³\82ê\82é (#41899)
+         * Win10\82Å\89æ\96Ê\8d\92[\82Ì\95\8e\9a\82ª\97\90\82ê\82é (#42072)
        * X11\82Ì\83\8d\83P\81[\83\8b\82ð\93à\95\94\82Åja_JP.EUC-JP\82É\8cÅ\92è\82·\82é (#40804)
 
 Sat Mar 13 2021  Kentaro Shirakata  <argrath@ub32.org>
index bd0ec04..44bfd99 100644 (file)
@@ -237,8 +237,9 @@ static void back_buffer_flip()
             if (back->iskanji == 1) {
                 cell_t * back2 = back + 1;
                 cell_t * front2 = front + 1;
+                /* pos.x == 0 \82Ì\8fð\8c\8f\82Í\95s\97v\82Ì\82Í\82¸\82¾\82ª #42072 \91Î\8dô\82Å\92Ç\89Á\81B */
                 if (back->attribute != front->attribute ||
-                    back2->attribute != front2->attribute) {
+                    back2->attribute != front2->attribute || pos.X == 0) {
                     WORD attrs[2];
                     attrs[0] = attrs[1] = back->attribute;
                     WriteConsoleOutputAttribute(console.hConOut, attrs,
@@ -246,8 +247,9 @@ static void back_buffer_flip()
                     front->attribute = back->attribute;
                     front2->attribute = back2->attribute;
                 }
+                /* pos.x == 0 \82Ì\8fð\8c\8f\82Í\95s\97v\82Ì\82Í\82¸\82¾\82ª #42072 \91Î\8dô\82Å\92Ç\89Á\81B */
                 if (back->character != front->character ||
-                    back2->character != front2->character) {
+                    back2->character != front2->character || pos.X == 0) {
                     unsigned char buf[2];
                     buf[0] = (unsigned char)(back->character);
                     buf[1] = (unsigned char)(back2->character);