"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "grid-reader.c" between
tmux-3.2.tar.gz and tmux-3.2a.tar.gz

About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.

grid-reader.c  (tmux-3.2):grid-reader.c  (tmux-3.2a)
skipping to change at line 374 skipping to change at line 374
xx = grid_line_length(gr->gd, py - 2); xx = grid_line_length(gr->gd, py - 2);
} }
return 0; return 0;
} }
/* Jump back to the first non-blank character of the line. */ /* Jump back to the first non-blank character of the line. */
void void
grid_reader_cursor_back_to_indentation(struct grid_reader *gr) grid_reader_cursor_back_to_indentation(struct grid_reader *gr)
{ {
struct grid_cell gc; struct grid_cell gc;
u_int px, py, xx, yy; u_int px, py, xx, yy, oldx, oldy;
yy = gr->gd->hsize + gr->gd->sy - 1; yy = gr->gd->hsize + gr->gd->sy - 1;
oldx = gr->cx;
oldy = gr->cy;
grid_reader_cursor_start_of_line(gr, 1); grid_reader_cursor_start_of_line(gr, 1);
for (py = gr->cy; py <= yy; py++) { for (py = gr->cy; py <= yy; py++) {
xx = grid_line_length(gr->gd, py); xx = grid_line_length(gr->gd, py);
for (px = 0; px < xx; px++) { for (px = 0; px < xx; px++) {
grid_get_cell(gr->gd, px, py, &gc); grid_get_cell(gr->gd, px, py, &gc);
if (gc.data.size != 1 || *gc.data.data != ' ') if (gc.data.size != 1 || *gc.data.data != ' ') {
break; gr->cx = px;
gr->cy = py;
return;
}
} }
if (~grid_get_line(gr->gd, py)->flags & GRID_LINE_WRAPPED) if (~grid_get_line(gr->gd, py)->flags & GRID_LINE_WRAPPED)
break; break;
} }
gr->cx = oldx;
gr->cy = oldy;
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)