[1262] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[nelhage/barnowl] db1af5: Fix a bug rendering multi-byte characters in the l...

daemon@ATHENA.MIT.EDU (noreply@github.com)
Thu Oct 29 18:14:45 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
Date: Wed, 7 Jan 2009 14:40:04 -0800
From: noreply@github.com
Apparently-To: <dirty-owl-hackers@mit.edu>
To: undisclosed-recipients:;

Branch: refs/heads/master
Home:   http://github.com/nelhage/barnowl

Commit: db1af5fa3960668a7bf00e5146e74f17153deb3f
    http://github.com/nelhage/barnowl/commit/db1af5fa3960668a7bf00e5146e74f17153deb3f
Author: Alejandro R. SedeƱo <asedeno@mit.edu>
Date:   2009-01-07 (Wed, 07 Jan 2009)

Changed paths:
  M fmtext.c

Log Message:
-----------
Fix a bug rendering multi-byte characters in the last column of the window.

When the last character on a line was not wide, the code assumed that
it consumed one byte. This caused multi-byte characters to render
improperly. Now we find the start of the next character to ensure we
get the whole thing. [Fixes: #56]

Reported by: andersk

Also, clarified some comments and did a bit of code hoisting.



home help back first fref pref prev next nref lref last post