mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
fix whitespace
This commit is contained in:
parent
0ca534c345
commit
8723c0fb33
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user