fix: Fix username tab completion without @ (#4853)
This commit is contained in:
@@ -31,10 +31,15 @@ public:
|
||||
|
||||
private:
|
||||
enum class SourceKind {
|
||||
// Known to be an emote, i.e. started with :
|
||||
Emote,
|
||||
// Known to be a username, i.e. started with @
|
||||
User,
|
||||
// Known to be a command, i.e. started with / or .
|
||||
Command,
|
||||
// Emote or command without : or / .
|
||||
EmoteCommand,
|
||||
// Emote, user, or command without :, @, / .
|
||||
EmoteUserCommand
|
||||
};
|
||||
|
||||
@@ -54,7 +59,7 @@ private:
|
||||
std::unique_ptr<completion::Source> buildSource(SourceKind kind) const;
|
||||
|
||||
std::unique_ptr<completion::Source> buildEmoteSource() const;
|
||||
std::unique_ptr<completion::Source> buildUserSource() const;
|
||||
std::unique_ptr<completion::Source> buildUserSource(bool prependAt) const;
|
||||
std::unique_ptr<completion::Source> buildCommandSource() const;
|
||||
|
||||
Channel &channel_;
|
||||
|
||||
Reference in New Issue
Block a user