From 5ae77b43175d3ab588253c5872ce213aa6a6182d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 3 Mar 2012 20:38:16 -0800 Subject: For for crash when typing backslash c --- input.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'input.cpp') diff --git a/input.cpp b/input.cpp index d16fb961..14e434dc 100644 --- a/input.cpp +++ b/input.cpp @@ -429,8 +429,7 @@ static wint_t input_try_mapping( const input_mapping_t &m) input_unreadch( c ); const wchar_t *str = m.seq.c_str(); - for( j=0; str[j] != L'\0' && - str[j] == (c=input_common_readch( j>0 )); j++ ) + for( j=0; str[j] != L'\0' && str[j] == (c=input_common_readch( j>0 )); j++ ) ; if( str[j] == L'\0' ) -- cgit v1.2.3