Remove autocomplete for /correct-editor

We decided that it was better to remove autocomplete for this command,
since adding it only introduced problems and the command can still
function perfectly without autocomplete.
This commit is contained in:
MarcoPolo-PasTonMolo
2021-10-21 17:01:54 +03:00
parent cd16264d2b
commit 6b0f15a1c9
4 changed files with 18 additions and 31 deletions

View File

@@ -9461,7 +9461,7 @@ cmd_change_password(ProfWin* window, const char* const command, gchar** args)
return TRUE;
}
// Returns true if any error occured
// Returns true if an error occured
gboolean
_get_message_from_editor(gchar* message, gchar** returned_message)
{
@@ -9569,15 +9569,13 @@ cmd_correct_editor(ProfWin* window, const char* const command, gchar** args)
return TRUE;
}
gchar* initial_message = g_strjoinv(" ", args);
gchar* initial_message = _get_last_message(window);
gchar* message = NULL;
if (_get_message_from_editor(initial_message, &message)) {
return TRUE;
}
free(initial_message);
if (window->type == WIN_CHAT) {
ProfChatWin* chatwin = (ProfChatWin*)window;