mirror of https://github.com/torvalds/linux.git
Instead of discarding the saved unicode buffer when the console was
resized while in the alternate screen, resize it to the current
dimensions using vc_uniscr_copy_area() to preserve its content. This
properly restores the unicode screen on alt screen exit rather than
lazily rebuilding it from a lossy reverse glyph translation.
On allocation failure the stale buffer is freed and vc_uni_lines is
set to NULL so it gets lazily rebuilt via vc_uniscr_check() when next
needed.
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| conmakehash.c | ||
| consolemap.c | ||
| cp437.uni | ||
| defkeymap.c_shipped | ||
| defkeymap.map | ||
| gen_ucs_fallback_table.py | ||
| gen_ucs_recompose_table.py | ||
| gen_ucs_width_table.py | ||
| keyboard.c | ||
| selection.c | ||
| ucs.c | ||
| ucs_fallback_table.h_shipped | ||
| ucs_recompose_table.h_shipped | ||
| ucs_width_table.h_shipped | ||
| vc_screen.c | ||
| vt.c | ||
| vt_ioctl.c | ||