ryanreh99
b38cbc8f34
typeahead: Fix stream+topic completions for empty query.
...
This fixes a bug where the autocomplete for topics
deleted all the text content, if the topic jump is used
without entering any text.
The topic typeahead is automatically set up, on entering
the ">" key for stream completions. Therefore there is a
case where the user can select a typeahead item without
entering any text.
Thus the token length will be 0 and `beginning.slice(0, -0)` returns
"" instead of the `beginning` string. The case is only relevant for
"topic_list" completion as we don't set up the typeahead for empty
strings.
Fix this by reverting a hunk of
48f5e5179a , adding a test.
Fixes #16599 .
Co-authored-by: Rohitt Vashishtha <aero31aero@gmail.com >
2020-10-29 11:02:17 -07:00
..
2020-09-28 15:37:49 -07:00
2020-10-07 16:00:33 -07:00
2020-10-23 11:46:55 -07:00
2020-10-28 23:04:14 -07:00
2020-10-07 16:00:33 -07:00
2020-07-17 14:31:25 -07:00
2020-10-13 16:59:52 -07:00
2020-10-22 15:00:27 -07:00
2020-08-11 10:25:53 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-07-28 11:01:35 -07:00
2020-10-07 16:00:33 -07:00
2020-09-01 19:55:58 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-08 17:05:06 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-10-28 23:08:16 -07:00
2020-09-01 19:55:58 -07:00
2020-09-25 15:12:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-23 11:46:55 -07:00
2020-10-28 23:08:16 -07:00
2020-10-29 11:02:17 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-07-29 11:17:24 -07:00
2020-09-25 15:17:59 -07:00
2020-09-25 15:12:24 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-28 23:06:26 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-07-28 11:01:35 -07:00
2020-07-31 22:09:46 -07:00
2020-09-01 19:55:58 -07:00
2020-10-23 11:46:55 -07:00
2020-09-25 15:17:59 -07:00
2019-10-31 13:47:54 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-09-01 19:55:58 -07:00
2020-09-18 11:44:04 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-08-09 16:47:56 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-01 19:55:58 -07:00
2020-10-23 11:46:55 -07:00
2020-09-01 19:55:58 -07:00
2020-10-28 23:08:16 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-10-07 16:00:33 -07:00
2020-09-01 19:55:58 -07:00
2020-09-25 15:12:24 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-10-20 17:07:48 -07:00
2020-09-15 16:33:28 -07:00
2020-10-07 16:00:33 -07:00
2020-09-23 09:06:07 -04:00
2020-09-25 15:17:59 -07:00
2020-10-23 11:46:55 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-10-21 07:43:00 -07:00
2020-10-13 15:47:13 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-23 11:46:55 -07:00
2020-10-07 16:00:33 -07:00
2020-09-01 19:55:58 -07:00
2020-07-31 22:09:46 -07:00
2020-10-23 11:46:55 -07:00
2020-09-25 15:17:59 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-06 17:22:54 -07:00
2020-07-31 22:09:46 -07:00
2020-09-25 15:17:59 -07:00
2020-09-25 15:17:59 -07:00
2020-09-23 09:06:07 -04:00
2020-10-23 11:46:55 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-10-23 11:46:55 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-09-25 15:17:59 -07:00
2020-10-07 16:00:33 -07:00
2020-10-22 15:00:27 -07:00
2020-10-13 16:59:52 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-22 15:00:27 -07:00
2020-09-25 15:17:59 -07:00
2020-09-01 16:43:02 -07:00
2020-09-01 19:55:58 -07:00
2020-09-01 19:55:58 -07:00
2020-09-22 15:42:53 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-21 07:43:00 -07:00
2020-10-22 15:00:27 -07:00
2020-08-12 17:31:25 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-01 19:55:58 -07:00
2020-09-25 15:12:24 -07:00
2020-08-11 10:23:06 -07:00
2020-09-25 15:12:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-23 11:46:55 -07:00
2020-10-07 16:00:33 -07:00
2020-10-12 17:42:52 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-23 11:46:55 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-08 17:05:06 -07:00
2020-09-25 15:17:59 -07:00
2020-09-01 19:55:58 -07:00
2020-09-25 15:17:59 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-07-31 22:09:46 -07:00
2020-09-01 19:55:58 -07:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-01 19:55:58 -07:00
2020-09-28 15:39:31 -07:00
2020-07-31 22:09:46 -07:00
2020-09-25 15:17:59 -07:00
2020-09-24 16:13:47 -07:00
2020-09-25 15:12:24 -07:00
2020-10-21 07:43:00 -07:00
2020-09-23 09:06:07 -04:00
2020-07-31 22:09:46 -07:00
2020-10-07 16:00:33 -07:00
2020-09-01 19:55:58 -07:00
2020-09-25 15:17:59 -07:00
2020-09-25 15:17:59 -07:00
2020-07-31 22:09:46 -07:00
2020-09-01 19:55:58 -07:00
2020-10-07 16:00:33 -07:00
2020-10-07 16:00:33 -07:00
2020-09-25 15:17:59 -07:00
2020-07-31 22:09:46 -07:00
2020-07-31 22:09:46 -07:00
2020-09-25 15:17:59 -07:00
2020-07-31 22:09:46 -07:00