Skip to content

Commit 7bad2bb

Browse files
committed
f-droid: app-patches: update sixel.patch
1 parent cc024c7 commit 7bad2bb

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

f-droid-patches/app-patches/sixel.patch

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5384,30 +5384,28 @@ index aada13b78f..5c6dcdec7b 100644
53845384
mIsFastPathOsc = true;
53855385
mIgnoreCrLfForOsc = true;
53865386

5387-
From 506183f18f56fac93b6c6b7f98db502ace1934ae Mon Sep 17 00:00:00 2001
5387+
From 2151d08496b184980bdf89351213c7617a54e0d3 Mon Sep 17 00:00:00 2001
53885388
From: agnostic-apollo <agnosticapollo@gmail.com>
53895389
Date: Wed, 6 May 2026 02:33:12 +0500
5390-
Subject: [PATCH 11/11] Fixed: Allow sixel DCS command start `P3` arg to not
5391-
end with a semicolon
5390+
Subject: [PATCH] Fixed: Allow sixel DCS command start `P3` arg to not end with
5391+
a semicolon and allow not passing all optional parameters
53925392

53935393
---
5394-
.../src/main/java/com/termux/terminal/TerminalEmulator.java | 6 ++++++
5395-
1 file changed, 6 insertions(+)
5394+
.../src/main/java/com/termux/terminal/TerminalEmulator.java | 4 ++++
5395+
1 file changed, 4 insertions(+)
53965396

53975397
diff --git a/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java b/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java
5398-
index 5c6dcdec7b..aea420e90c 100644
5398+
index 5c6dcdec7b..4595dbefd0 100644
53995399
--- a/termux-app/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java
54005400
+++ b/termux-app/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java
5401-
@@ -1400,6 +1400,12 @@ private int[] getSixelDcsSetupArgs(String dcs, int index) {
5401+
@@ -1400,6 +1400,10 @@ private int[] getSixelDcsSetupArgs(String dcs, int index) {
54025402
}
54035403

54045404
incArg = true;
54055405
+ } else if (ch == 'q') {
5406-
+ // If `P3` did not end with a `;`, but is followed by `q`.
5407-
+ if (arg == 2) {
5408-
+ return args;
5409-
+ }
5410-
+ break;
5406+
+ // If optional parameters `P1`, `P2` or `P3` are not all passed, or
5407+
+ // a parameter did not end with a `;`, but is followed by `q`.
5408+
+ return args;
54115409
} else {
54125410
break;
54135411
}

0 commit comments

Comments
 (0)