From 576096a70eb676cb5f206e8926cac0d3fadfe98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Thu, 1 Feb 2018 13:19:59 +0100 Subject: [PATCH] Fix server command completion. --- main.py | 1 + matrix/completion.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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", "" )