summaryrefslogtreecommitdiff
path: root/fs/devfs/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2026-03-27 23:09:47 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-30 17:39:44 +0200
commit3ddbea7542ae529c1a88ef9a8b1ce169126211f6 (patch)
treef039a2489cea7aef99a26cff4fc34aaf180ba152 /fs/devfs/git@git.tavy.me:linux.git
parent40014493cece72a0be5672cd86763e53fb3ec613 (diff)
vt: resize saved unicode buffer on alt screen exit after resize
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: 40014493cece ("vt: discard stale unicode buffer on alt screen exit after resize") Cc: stable <stable@kernel.org> Signed-off-by: Nicolas Pitre <nico@fluxnic.net> Link: https://patch.msgid.link/3nsr334n-079q-125n-7807-n4nq818758ns@syhkavp.arg Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/devfs/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions