diff --git a/main.py b/main.py index 92391cb..dcaeaf8 100644 --- a/main.py +++ b/main.py @@ -70,6 +70,7 @@ from matrix.bar_items import ( from matrix.completion import ( init_completion, matrix_command_completion_cb, + matrix_server_command_completion_cb, matrix_debug_completion_cb, matrix_message_completion_cb, matrix_server_completion_cb diff --git a/matrix/completion.py b/matrix/completion.py index c74e70c..abe5dfb 100644 --- a/matrix/completion.py +++ b/matrix/completion.py @@ -32,7 +32,7 @@ def add_servers_to_completion(completion): @utf8_decode -def server_command_completion_cb(data, completion_item, buffer, completion): +def matrix_server_command_completion_cb(data, completion_item, buffer, completion): buffer_input = W.buffer_get_string(buffer, "input").split() args = buffer_input[1:] @@ -155,7 +155,7 @@ def init_completion(): W.hook_completion( "matrix_server_commands", "Matrix server completion", - "server_command_completion_cb", + "matrix_server_command_completion_cb", "" )