[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.144 and 1.145

version 1.144, 2019/03/12 07:39:27 version 1.145, 2019/03/12 13:14:14
Line 75 
Line 75 
                 return;                  return;
   
         if (cx != -1) {          if (cx != -1) {
                 if ((u_int)cx > screen_size_x(s) - 1)                  if ((u_int)cx > screen_size_x(s)) /* allow last column */
                         cx = screen_size_x(s) - 1;                          cx = screen_size_x(s) - 1;
                 s->cx = cx;                  s->cx = cx;
         }          }
Line 1044 
Line 1044 
                 else                  else
                         py += s->rupper;                          py += s->rupper;
         }          }
   
           if (px > screen_size_x(s) - 1)
                   px = screen_size_x(s) - 1;
           if (py > screen_size_y(s) - 1)
                   py = screen_size_y(s) - 1;
   
         screen_write_set_cursor(ctx, px, py);          screen_write_set_cursor(ctx, px, py);
 }  }

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145