diff options
author | Todd A. Pratt <toddpratt978@gmail.com> | 2016-02-10 09:47:10 -0500 |
---|---|---|
committer | Todd A. Pratt <toddpratt978@gmail.com> | 2016-02-10 09:47:10 -0500 |
commit | 8723c0fb339dcf58c164fbc741122f9c3657ddea (patch) | |
tree | aa3ec25aac61265a6fe98d09d39351593926adeb /src/fe-text | |
parent | 0ca534c345c79b06ca8eefa0c46ff7ed1439be0c (diff) | |
download | irssi-8723c0fb339dcf58c164fbc741122f9c3657ddea.zip |
fix whitespace
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/gui-entry.c | 13 |
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: |