Replying to elexis:
Since cinput_length
is not a variable found in the code, the ticket description should elucidate that cinput_length
means the visible width of the GUI object in number of characters (and not the maximum number of characters typable there).
max_length
is maximum number of character.
1) SDLK_PAGEUP
and SDLK_PAGEDOWN
, even if we don't have any multiline
input
object yet.
Fixed.
2) Autocomplete with Tab (for example autoCompleteNick
in gamesetup/session/lobby/replay menu.
It should be solved not in the tab part, because JS handles it, but I'm fixing.
One should take a brief look at UpdateAutoScroll()
to see whether it could bug in edge cases as in that commit (likely doesn't, as the function is also called for example for empty text at other times).
It works even for an empty string.
max_length
looks like something that also might bug in some cases as it is only taken into account in one place. Also reminds me of #3651.
Also copy & paste is broken on unix and even crashes sometimes: #3145.
There is no check when the paste size bigger than the max length. And it's not the goal of the ticket.