mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
fix intentation
This commit is contained in:
parent
d652055060
commit
75e56297fc
1 changed files with 34 additions and 34 deletions
|
|
@ -797,10 +797,9 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
|
||||||
switch (update_cutbuffer) {
|
switch (update_cutbuffer) {
|
||||||
case CUTBUFFER_UPDATE_APPEND:
|
case CUTBUFFER_UPDATE_APPEND:
|
||||||
tmp->cutbuffer = g_new(unichar, cutbuffer_new_size + 1);
|
tmp->cutbuffer = g_new(unichar, cutbuffer_new_size + 1);
|
||||||
memcpy(tmp->cutbuffer, tmpcutbuffer,
|
memcpy(tmp->cutbuffer, tmpcutbuffer, tmp->cutbuffer_len * sizeof(unichar));
|
||||||
tmp->cutbuffer_len * sizeof(unichar));
|
memcpy(tmp->cutbuffer + tmp->cutbuffer_len, entry->text + entry->pos - size,
|
||||||
memcpy(tmp->cutbuffer + tmp->cutbuffer_len,
|
size * sizeof(unichar));
|
||||||
entry->text + entry->pos - size, size * sizeof(unichar));
|
|
||||||
|
|
||||||
tmp->cutbuffer_len = cutbuffer_new_size;
|
tmp->cutbuffer_len = cutbuffer_new_size;
|
||||||
tmp->cutbuffer[cutbuffer_new_size] = '\0';
|
tmp->cutbuffer[cutbuffer_new_size] = '\0';
|
||||||
|
|
@ -828,7 +827,8 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
|
||||||
|
|
||||||
tmp->cutbuffer_len = size;
|
tmp->cutbuffer_len = size;
|
||||||
tmp->cutbuffer[size] = '\0';
|
tmp->cutbuffer[size] = '\0';
|
||||||
memcpy(tmp->cutbuffer, entry->text + entry->pos - size, size * sizeof(unichar));
|
memcpy(tmp->cutbuffer, entry->text + entry->pos - size,
|
||||||
|
size * sizeof(unichar));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CUTBUFFER_UPDATE_NOOP:
|
case CUTBUFFER_UPDATE_NOOP:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue