From af3c8348a096b80a22d9463c516a932689a4836c Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 12 Jul 2023 00:05:14 +0200 Subject: Improve encoding support * Use the output charset in lineedit (as w3m does) * encoder: fix broken UTF-8 encoding, use openArray instead of var seq for input queue * Add RuneStream as an in-memory interface to EncoderStream * Document display-charset config option --- src/display/client.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/display/client.nim') diff --git a/src/display/client.nim b/src/display/client.nim index aa36cdac..a292bf0a 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -196,12 +196,12 @@ proc input(client: Client) = client.line = edit if edit.escNext: edit.escNext = false - if edit.write(client.s): + if edit.write(client.s, client.pager.term.cs): client.s = "" else: let action = getLinedAction(client.config, client.s) if action == "": - if edit.write(client.s): + if edit.write(client.s, client.pager.term.cs): client.s = "" else: client.feedNext = true -- cgit 1.4.1-2-gfad0