Changing renditions no longer clears wrap state

This commit is contained in:
Keith Winstein
2011-09-30 19:02:28 -04:00
parent ad8cb166de
commit 3f2956ee61
4 changed files with 15 additions and 10 deletions
+4 -2
View File
@@ -26,10 +26,12 @@ namespace Terminal {
class Function {
public:
Function() : function( NULL ) {}
Function() : function( NULL ), clears_wrap_state( true ) {}
Function( Function_Type type, std::string dispatch_chars,
void (*s_function)( Framebuffer *, Dispatcher * ) );
void (*s_function)( Framebuffer *, Dispatcher * ),
bool s_clears_wrap_state = true );
void (*function)( Framebuffer *, Dispatcher * );
bool clears_wrap_state;
};
typedef std::map<std::string, Function> dispatch_map_t;