Since u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Sep 2010 15:32:09 +0000 (15:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Sep 2010 15:32:09 +0000 (15:32 +0000)
commitde39b9746aa912589462b418e2a9af3d69b063c2
tree5ea6735d0738bad91add99c15c9d3ce7b3149937
parentf0eda58867febcd4dc0f6c6be401d37000d136c5
Since u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid utf8 chars get pasted in the console edit line. It's even possible to delete the ].
Fix this bug by giving to u8_prevbyte the edit line without ].

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10439 d7cf8633-e32d-0410-b094-e92efae38249
keys.c