summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTodd A. Pratt <toddpratt978@gmail.com>2016-02-10 09:47:10 -0500
committerTodd A. Pratt <toddpratt978@gmail.com>2016-02-10 09:47:10 -0500
commit8723c0fb339dcf58c164fbc741122f9c3657ddea (patch)
treeaa3ec25aac61265a6fe98d09d39351593926adeb /src/fe-text
parent0ca534c345c79b06ca8eefa0c46ff7ed1439be0c (diff)
downloadirssi-8723c0fb339dcf58c164fbc741122f9c3657ddea.zip
fix whitespace
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-entry.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c
index 78b9166d..27778b2b 100644
--- a/src/fe-text/gui-entry.c
+++ b/src/fe-text/gui-entry.c
@@ -582,11 +582,11 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
if (size == 0 || entry->pos < size)
return;
- if (entry->cutbuffer_len == 0) {
- update_cutbuffer = CUTBUFFER_UPDATE_REPLACE;
- }
- int cutbuffer_new_size = entry->cutbuffer_len + size;
- unichar *tmpcutbuffer = entry->cutbuffer;
+ if (entry->cutbuffer_len == 0) {
+ update_cutbuffer = CUTBUFFER_UPDATE_REPLACE;
+ }
+ int cutbuffer_new_size = entry->cutbuffer_len + size;
+ unichar *tmpcutbuffer = entry->cutbuffer;
switch (update_cutbuffer) {
case CUTBUFFER_UPDATE_APPEND:
entry->cutbuffer = g_new(unichar, cutbuffer_new_size+1);
@@ -621,8 +621,7 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
entry->cutbuffer_len = size;
entry->cutbuffer[size] = '\0';
- memcpy(entry->cutbuffer, entry->text + entry->pos - size,
- size * sizeof(unichar));
+ memcpy(entry->cutbuffer, entry->text + entry->pos - size, size * sizeof(unichar));
break;
case CUTBUFFER_UPDATE_NOOP: