mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r22038) -Fix (r21406): Tab completion in chat did not cycle through all possible options.
This commit is contained in:
parent
e76465bab9
commit
0828653cf9
@ -398,11 +398,11 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
|
||||
/* If we are completing at the begin of the line, skip the ': ' we added */
|
||||
if (tb_buf == pre_buf) {
|
||||
offset = 0;
|
||||
length = (tb->max_bytes - 1) - 2;
|
||||
length = (tb->bytes - 1) - 2;
|
||||
} else {
|
||||
/* Else, find the place we are completing at */
|
||||
offset = strlen(pre_buf) + 1;
|
||||
length = (tb->max_bytes - 1) - offset;
|
||||
length = (tb->bytes - 1) - offset;
|
||||
}
|
||||
|
||||
/* Compare if we have a match */
|
||||
|
Loading…
Reference in New Issue
Block a user