summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-11-10 15:05:27 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-11-10 15:05:27 +0000
commitdd735af7f823b8136f80ce3b809dd1bac4cd5e0e (patch)
tree5279f832df0f18031d62f5618d52b2f9c1d5a981
parent87fb462f359335b9ce38db74a9a1154b852ca7e4 (diff)
downloadweechat-dd735af7f823b8136f80ce3b809dd1bac4cd5e0e.zip
Fixed bug with ctrl-w key (delete previous word) when used in the middle of a line
-rw-r--r--src/gui/gui-action.c2
-rw-r--r--weechat/src/gui/gui-action.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui-action.c b/src/gui/gui-action.c
index eb1c941d9..3ada510c8 100644
--- a/src/gui/gui-action.c
+++ b/src/gui/gui-action.c
@@ -328,7 +328,7 @@ gui_action_delete_previous_word (t_gui_window *window)
gui_action_clipboard_copy (string, size_deleted);
- memmove (string, string + size_deleted, size_deleted);
+ memmove (string, string + size_deleted, strlen (string + size_deleted));
window->buffer->input_buffer_size -= size_deleted;
window->buffer->input_buffer_length -= length_deleted;
diff --git a/weechat/src/gui/gui-action.c b/weechat/src/gui/gui-action.c
index eb1c941d9..3ada510c8 100644
--- a/weechat/src/gui/gui-action.c
+++ b/weechat/src/gui/gui-action.c
@@ -328,7 +328,7 @@ gui_action_delete_previous_word (t_gui_window *window)
gui_action_clipboard_copy (string, size_deleted);
- memmove (string, string + size_deleted, size_deleted);
+ memmove (string, string + size_deleted, strlen (string + size_deleted));
window->buffer->input_buffer_size -= size_deleted;
window->buffer->input_buffer_length -= length_deleted;