mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
- Unbreak selection colouring.
- Get UTF-8 check the right way round...
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: window-copy.c,v 1.54 2009-03-30 19:57:02 nicm Exp $ */
|
||||
/* $Id: window-copy.c,v 1.55 2009-03-30 20:14:50 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -483,7 +483,7 @@ window_copy_copy_line(struct window_pane *wp,
|
||||
gc = grid_peek_cell(wp->base.grid, i, sy);
|
||||
if (gc->flags & GRID_FLAG_PADDING)
|
||||
continue;
|
||||
if (gc->flags & GRID_FLAG_UTF8) {
|
||||
if (!(gc->flags & GRID_FLAG_UTF8)) {
|
||||
*buf = xrealloc(*buf, 1, (*off) + 1);
|
||||
(*buf)[(*off)++] = gc->data;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user