]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
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)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 4 Sep 2010 15:34:08 +0000 (17:34 +0200)
commite4efe1d6a495d0dde4c04b2b043b539a88dbbd4f
tree9f969d9063d7ce43b6c82863568e537063149781
parent5d59fbd8aa141f97e1778e9cb1648fc71c1c0a82
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
::stable-branch::merge=de39b9746aa912589462b418e2a9af3d69b063c2
keys.c