Don't fall off commandline processing routine

Fixes crash when key is typed in command mode in Mac OS X.
This commit is contained in:
Ilari Liusvaara 2012-01-12 12:41:06 +02:00
parent a0680f8778
commit 5bcad5e037

View file

@ -97,6 +97,7 @@ std::string commandline_model::key(uint32_t k) throw(std::bad_alloc)
codepoints[i] = codepoints[i - 1];
}
codepoints[cursor_pos++] = k & ~PRESSED_MASK;
return "";
};
}