Move grapheme printing from FrameState::append_cell() to Framebuffer::Cell::print_grapheme().

This commit is contained in:
John Hood
2015-10-19 18:40:24 -04:00
parent 0b51260540
commit 66634eb97c
3 changed files with 18 additions and 16 deletions
-15
View File
@@ -462,21 +462,6 @@ FrameState::FrameState( const Framebuffer &s_last )
str.reserve( last_frame.ds.get_width() * last_frame.ds.get_height() * 4 );
}
/* Write a character cell */
void FrameState::append_cell(const Cell & cell)
{
if ( cell.contents.empty() ) {
append( ' ' );
return;
}
/* cells that begin with combining character get combiner attached to no-break space */
if ( cell.fallback ) {
append( "\xC2\xA0" );
}
append( cell.contents );
}
void FrameState::append_silent_move( int y, int x )
{
if ( cursor_x == x && cursor_y == y ) return;