mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
shift_chars(): let it use alloca() if possible (--fastmem mode only).
This commit is contained in:
parent
f28df73348
commit
ee476c6eb6
@ -615,14 +615,14 @@ shift_chars(struct html_context *html_context, int y, int shift)
|
||||
|
||||
len = LEN(y);
|
||||
|
||||
a = mem_alloc(len * sizeof(*a));
|
||||
a = fmem_alloc(len * sizeof(*a));
|
||||
if (!a) return;
|
||||
|
||||
copy_screen_chars(a, &POS(0, y), len);
|
||||
|
||||
clear_hchars(html_context, 0, y, shift);
|
||||
copy_chars(html_context, shift, y, len, a);
|
||||
mem_free(a);
|
||||
fmem_free(a);
|
||||
|
||||
move_links(html_context, 0, y, shift, y);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user