[BACK]Return to screen-write.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/screen-write.c between version 1.222.2.1 and 1.223

version 1.222.2.1, 2023/11/20 18:08:24 version 1.223, 2023/10/23 08:12:00
Line 2013 
Line 2013 
   
         /*          /*
          * Check if we need to combine characters. This could be zero width           * Check if we need to combine characters. This could be zero width
          * (zet above), a modifier character (with an existing Unicode           * (set above), a modifier character (with an existing Unicode
          * character) or a previous ZWJ.           * character) or a previous ZWJ.
          */           */
         if (!zero_width) {          if (!zero_width) {
Line 2024 
Line 2024 
                 } else if (!utf8_has_zwj(&last.data))                  } else if (!utf8_has_zwj(&last.data))
                         return (0);                          return (0);
         }          }
   
         /* Check if this combined character would be too long. */  
         if (last.data.size + ud->size > sizeof last.data.data)  
                 return (0);  
   
         /* Combining; flush any pending output. */          /* Combining; flush any pending output. */
         screen_write_collect_flush(ctx, 0, __func__);          screen_write_collect_flush(ctx, 0, __func__);

Legend:
Removed from v.1.222.2.1  
changed lines
  Added in v.1.223