diff options
author | Justin Bedo <cu@cua0.org> | 2024-11-08 11:03:44 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2024-11-08 11:05:28 +1100 |
commit | 13f607e2f4917d2d5a65e737a8cad5a8944c1592 (patch) | |
tree | c274e63f06625e60307d6f37244e6e656b3971d3 | |
parent | 2cb9fe7985b86e04c80f9181a1b3dc4f7c681e6b (diff) |
fix pty cursor positioning after restripping buffer
-rw-r--r-- | jterm.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -351,7 +351,7 @@ handleEvent display win bgcolour fgcolour linecolour selcolour font event = do delins end (R.length (content b)) "" (4, 108) -> -- ctrl-l (restrip buffer of ansi codes) - delins 0 (R.length (content b)) (content b & R.toText & stripAnsiEscapeCodes & R.fromText) + delins' True 0 (R.length (content b)) (content b & R.toText & stripAnsiEscapeCodes & R.fromText) (4, 99) -> lift $ do -- ctrl-c (copy) storeBuffer display (R.toText selstr & T.unpack) 0 |