The branch, master has been updated
       via  b5fda7ad2a3a45e9a4d54d929b03a6b28bf67c37 (commit)
      from  e97e0d7e547f342e8166cabf30cf65c74b562173 (commit)

- Log -----------------------------------------------------------------
commit b5fda7ad2a3a45e9a4d54d929b03a6b28bf67c37
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>

    Spacing, warning nits.
---
 cmd.c  |    2 +-
 grid.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cmd.c b/cmd.c
index c8e9702..eecac46 100644
--- a/cmd.c
+++ b/cmd.c
@@ -1242,7 +1242,7 @@ cmd_find_pane_offset(const char *paneptr, struct winlink 
*wl)
 char *
 cmd_template_replace(const char *template, const char *s, int idx)
 {
-       char             ch, *buf;
+       char             ch, *buf;
        const char      *ptr;
        int              replaced;
        size_t           len;
diff --git a/grid.c b/grid.c
index 551a7dc..2955e8b 100644
--- a/grid.c
+++ b/grid.c
@@ -725,7 +725,7 @@ void
 grid_reflow_split(struct grid *dst, u_int *py, struct grid_line *src_gl,
     u_int new_x, u_int offset)
 {
-       struct grid_line        *dst_gl;
+       struct grid_line        *dst_gl = NULL;
        u_int                    to_copy;
 
        /* Loop and copy sections of the source line. */
@@ -756,7 +756,8 @@ grid_reflow_split(struct grid *dst, u_int *py, struct 
grid_line *src_gl,
        }
 
        /* Last line is not wrapped. */
-       dst_gl->flags &= ~GRID_LINE_WRAPPED;
+       if (dst_gl != NULL)
+               dst_gl->flags &= ~GRID_LINE_WRAPPED;
 }
 
 /* Move line data. */


-----------------------------------------------------------------------

Summary of changes:
 cmd.c  |    2 +-
 grid.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to