@@ -73,8 +73,8 @@ DrawState::DrawState( int s_width, int s_height )
7373}
7474
7575Framebuffer::Framebuffer ( int s_width, int s_height )
76- : rows(), icon_name(), window_title(), clipboard (), bell_count( 0 ), title_initialized( false ),
77- ds( s_width, s_height )
76+ : rows(), icon_name(), window_title(), current_directory (), clipboard( ), bell_count( 0 ),
77+ title_initialized( false ), cwd_initialized( false ), ds( s_width, s_height )
7878{
7979 assert ( s_height > 0 );
8080 assert ( s_width > 0 );
@@ -85,8 +85,8 @@ Framebuffer::Framebuffer( int s_width, int s_height )
8585
8686Framebuffer::Framebuffer ( const Framebuffer& other )
8787 : rows( other.rows ), icon_name( other.icon_name ), window_title( other.window_title ),
88- clipboard ( other.clipboard ), bell_count ( other.bell_count ), title_initialized ( other.title_initialized ),
89- ds( other.ds )
88+ current_directory ( other.current_directory ), clipboard ( other.clipboard ), bell_count ( other.bell_count ),
89+ title_initialized( other.title_initialized ), cwd_initialized( other.cwd_initialized ), ds( other.ds )
9090{}
9191
9292Framebuffer& Framebuffer::operator =( const Framebuffer& other )
@@ -95,9 +95,11 @@ Framebuffer& Framebuffer::operator=( const Framebuffer& other )
9595 rows = other.rows ;
9696 icon_name = other.icon_name ;
9797 window_title = other.window_title ;
98+ current_directory = other.current_directory ;
9899 clipboard = other.clipboard ;
99100 bell_count = other.bell_count ;
100101 title_initialized = other.title_initialized ;
102+ cwd_initialized = other.cwd_initialized ;
101103 ds = other.ds ;
102104 }
103105 return *this ;
@@ -387,6 +389,7 @@ void Framebuffer::reset( void )
387389 ds = DrawState ( width, height );
388390 rows = rows_type ( height, newrow () );
389391 window_title.clear ();
392+ current_directory.clear ();
390393 clipboard.clear ();
391394 /* do not reset bell_count */
392395}
0 commit comments