The branch, master has been updated
via 2dfd3fbd71560aa34cffd2a8de65425876188a4f (commit)
from 3a13e066ba184b1051167b0675bf9b4364af021e (commit)
- Log -----------------------------------------------------------------
commit 2dfd3fbd71560aa34cffd2a8de65425876188a4f
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>
Only include actual trailing spaces not unused cells with capturep -J, from
George Nachman.
---
grid.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/grid.c b/grid.c
index 2955e8b..5cc6c14 100644
--- a/grid.c
+++ b/grid.c
@@ -592,6 +592,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py,
u_int nx,
char *buf, code[128];
size_t len, off, size, codelen;
u_int xx;
+ const struct grid_line *gl;
GRID_DEBUG(gd, "px=%u, py=%u, nx=%u", px, py, nx);
@@ -604,8 +605,11 @@ grid_string_cells(struct grid *gd, u_int px, u_int py,
u_int nx,
buf = xmalloc(len);
off = 0;
+ gl = grid_peek_line(gd, py);
for (xx = px; xx < px + nx; xx++) {
- gc = grid_peek_cell(gd, xx, py);
+ if (gl == NULL || xx >= gl->cellsize)
+ break;
+ gc = &gl->celldata[xx];
if (gc->flags & GRID_FLAG_PADDING)
continue;
grid_cell_get(gc, &ud);
-----------------------------------------------------------------------
Summary of changes:
grid.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs