summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTodd A. Pratt <ae88925@gmail.com>2015-11-13 20:33:57 -0500
committerTodd A. Pratt <ae88925@gmail.com>2015-11-13 20:33:57 -0500
commitbb8c0bbf4caf87172255993ce8a86f91a8cd4208 (patch)
tree2caf64e449d85ccaa3e93cbcba159e266a9e63d3 /src
parentf90e10c5d27ee7d8a6663a432238cf487e7d372f (diff)
downloadirssi-bb8c0bbf4caf87172255993ce8a86f91a8cd4208.zip
fix indentation, undelete line not meant to be deleted.
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/gui-entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c
index ec484cb5..650995bd 100644
--- a/src/fe-text/gui-entry.c
+++ b/src/fe-text/gui-entry.c
@@ -564,8 +564,8 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
memcpy(entry->cutbuffer, entry->text + entry->pos - size,
size * sizeof(unichar));
memcpy(entry->cutbuffer + size, tmpcutbuffer,
+ entry->cutbuffer_len * sizeof(unichar));
- entry->cutbuffer_len * sizeof(unichar));
entry->cutbuffer_len = cutbuffer_new_size;
entry->cutbuffer[cutbuffer_new_size] = '\0';
@@ -646,6 +646,7 @@ void gui_entry_erase_word(GUI_ENTRY_REC *entry, int to_space, CUTBUFFER_UPDATE_O
}
if (to > 0) to++;
+ gui_entry_erase(entry, entry->pos-to, TRUE);
}
void gui_entry_erase_next_word(GUI_ENTRY_REC *entry, int to_space)