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

Diff for /src/usr.bin/tmux/tty.c between version 1.408 and 1.409

version 1.408, 2021/10/25 09:22:17 version 1.409, 2021/10/28 18:57:06
Line 2278 
Line 2278 
         if (tty->flags & TTY_BLOCK)          if (tty->flags & TTY_BLOCK)
                 return;                  return;
   
         if (cx > tty->sx - 1)  
                 cx = tty->sx - 1;  
   
         thisx = tty->cx;          thisx = tty->cx;
         thisy = tty->cy;          thisy = tty->cy;
   
           /*
            * If in the automargin space, and want to be there, do not move.
            * Otherwise, force the cursor to be in range (and complain).
            */
           if (cx == thisx && cy == thisy && cx == tty->sx)
                   return;
           if (cx > tty->sx - 1) {
                   log_debug("%s: x too big %u > %u", __func__, cx, tty->sx - 1);
                   cx = tty->sx - 1;
           }
   
         /* No change. */          /* No change. */
         if (cx == thisx && cy == thisy)          if (cx == thisx && cy == thisy)
                 return;                  return;
   
         /* Very end of the line, just use absolute movement. */          /* Currently at the very end of the line - use absolute movement. */
         if (thisx > tty->sx - 1)          if (thisx > tty->sx - 1)
                 goto absolute;                  goto absolute;
   

Legend:
Removed from v.1.408  
changed lines
  Added in v.1.409