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

Diff for /src/usr.bin/tmux/grid-reader.c between version 1.2 and 1.3

version 1.2, 2021/02/22 06:53:04 version 1.3, 2021/03/09 08:24:09
Line 172 
Line 172 
   
         /* Do not break up wrapped words. */          /* Do not break up wrapped words. */
         if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED)          if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED)
                 xx = grid_reader_line_length(gr) - 1;                  xx = gr->gd->sx - 1;
         else          else
                 xx = grid_reader_line_length(gr);                  xx = grid_reader_line_length(gr);
         yy = gr->gd->hsize + gr->gd->sy - 1;          yy = gr->gd->hsize + gr->gd->sy - 1;
Line 197 
Line 197 
   
                                 if (grid_get_line(gr->gd, gr->cy)->flags &                                  if (grid_get_line(gr->gd, gr->cy)->flags &
                                     GRID_LINE_WRAPPED)                                      GRID_LINE_WRAPPED)
                                         xx = grid_reader_line_length(gr) - 1;                                          xx = gr->gd->sx - 1;
                                 else                                  else
                                         xx = grid_reader_line_length(gr);                                          xx = grid_reader_line_length(gr);
                         } else                          } else
Line 216 
Line 216 
   
         /* Do not break up wrapped words. */          /* Do not break up wrapped words. */
         if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED)          if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED)
                 xx = grid_reader_line_length(gr) - 1;                  xx = gr->gd->sx - 1;
         else          else
                 xx = grid_reader_line_length(gr);                  xx = grid_reader_line_length(gr);
         yy = gr->gd->hsize + gr->gd->sy - 1;          yy = gr->gd->hsize + gr->gd->sy - 1;
Line 241 
Line 241 
   
                                 if (grid_get_line(gr->gd, gr->cy)->flags &                                  if (grid_get_line(gr->gd, gr->cy)->flags &
                                     GRID_LINE_WRAPPED)                                      GRID_LINE_WRAPPED)
                                         xx = grid_reader_line_length(gr) - 1;                                          xx = gr->gd->sx - 1;
                                 else                                  else
                                         xx = grid_reader_line_length(gr);                                          xx = grid_reader_line_length(gr);
                         } else                          } else
Line 294 
Line 294 
                           GRID_LINE_WRAPPED)                            GRID_LINE_WRAPPED)
                                 break;                                  break;
                         grid_reader_cursor_up(gr);                          grid_reader_cursor_up(gr);
                         grid_reader_cursor_end_of_line(gr, 0, 0);                          grid_reader_cursor_end_of_line(gr, 0, 1);
                 }                  }
                 if (gr->cx > 0)                  if (gr->cx > 0)
                         gr->cx--;                          gr->cx--;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3