- Unbreak selection colouring.

- Get UTF-8 check the right way round...
This commit is contained in:
Nicholas Marriott
2009-03-30 20:14:50 +00:00
parent e2a7ac4b36
commit 8a160f2d58
3 changed files with 9 additions and 9 deletions

View File

@ -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 {