aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/terminal/terminal.cc
diff options
context:
space:
mode:
authorGravatar Keith Winstein <keithw@mit.edu>2012-04-02 19:04:26 -0400
committerGravatar Keith Winstein <keithw@mit.edu>2012-04-02 19:04:26 -0400
commit8221838f517c59cdb42794f2f17c74289874fbeb (patch)
tree72f5c52f77803c9db092d4fce88e9fbfdcb042aa /src/terminal/terminal.cc
parent7542070b8f49580a07d64a4ece3f10afaab09d83 (diff)
Fix bug sometimes causing missing (or spurious) wraparound copy-and-paste
Diffstat (limited to 'src/terminal/terminal.cc')
-rw-r--r--src/terminal/terminal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal/terminal.cc b/src/terminal/terminal.cc
index 4db42fa..18e9cdf 100644
--- a/src/terminal/terminal.cc
+++ b/src/terminal/terminal.cc
@@ -57,7 +57,7 @@ void Emulator::print( const Parser::Print *act )
case 1: /* normal character */
case 2: /* wide character */
if ( fb.ds.auto_wrap_mode && fb.ds.next_print_will_wrap ) {
- fb.get_mutable_row( -1 )->wrap = true;
+ fb.get_mutable_row( -1 )->set_wrap( true );
fb.ds.move_col( 0 );
fb.move_rows_autoscroll( 1 );
}
@@ -67,7 +67,7 @@ void Emulator::print( const Parser::Print *act )
&& (chwidth == 2)
&& (fb.ds.get_cursor_col() == fb.ds.get_width() - 1) ) {
fb.reset_cell( this_cell );
- fb.get_mutable_row( -1 )->wrap = false;
+ fb.get_mutable_row( -1 )->set_wrap( false );
/* There doesn't seem to be a consistent way to get the
downstream terminal emulator to set the wrap-around
copy-and-paste flag on a row that ends with an empty cell