The branch, master has been updated
       via  ce0b285aad74bae8b7e4d8fff1b63749cf6ddf84 (commit)
      from  149f5bac05584b83778c4803b2f1a54a57d7d84d (commit)

- Log -----------------------------------------------------------------
commit ce0b285aad74bae8b7e4d8fff1b63749cf6ddf84
Author: Nicholas Marriott <nicholas.marri...@gmail.com>
Commit: Nicholas Marriott <nicholas.marri...@gmail.com>

    Fix up missing bits.
---
 cmd-choose-tree.c |    6 ++++--
 screen-write.c    |    8 ++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c
index dd6dd3b..e8da7a4 100644
--- a/cmd-choose-tree.c
+++ b/cmd-choose-tree.c
@@ -149,8 +149,10 @@ cmd_choose_tree_exec(struct cmd *self, struct cmd_ctx *ctx)
         * without any padding.
         */
        if (wflag && sflag) {
-               xasprintf(&final_win_template_middle, " |-> %s", win_template);
-               xasprintf(&final_win_template_last, " \\-> %s", win_template);
+               xasprintf(&final_win_template_middle,
+                   " \001tq\001> %s", win_template);
+               xasprintf(&final_win_template_last,
+                   " \001mq\001> %s", win_template);
        } else if (wflag) {
                final_win_template_middle = xstrdup(win_template);
                final_win_template_last = xstrdup(win_template);
diff --git a/screen-write.c b/screen-write.c
index 2b373d7..66a62b3 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -210,8 +210,12 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t 
maxlen,
                        if (maxlen > 0 && size + 1 > (size_t) maxlen)
                                break;
 
-                       size++;
-                       screen_write_putc(ctx, gc, *ptr);
+                       if (*ptr == '\001')
+                               gc->attr ^= GRID_ATTR_CHARSET;
+                       else {
+                               size++;
+                               screen_write_putc(ctx, gc, *ptr);
+                       }
                        ptr++;
                }
        }


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

Summary of changes:
 cmd-choose-tree.c |    6 ++++--
 screen-write.c    |    8 ++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to