Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--community/tilix/PKGBUILD12
-rw-r--r--community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch12
2 files changed, 24 insertions, 0 deletions
diff --git a/community/tilix/PKGBUILD b/community/tilix/PKGBUILD
new file mode 100644
index 00000000..8edf0956
--- /dev/null
+++ b/community/tilix/PKGBUILD
@@ -0,0 +1,12 @@
+# https://github.com/gnunn1/tilix/issues/1392
+
+source+=('tilix-1.7.9-32bit-glong-getCursorPosition.patch')
+sha256sums+=('3217d9e0d84a2d4c3ce7d066e99fda23bf814f395a18881caef5245e51276824')
+
+eval "$(
+ declare -f prepare | \
+ sed '
+ 3 a patch -Np1 -i "${srcdir}"/tilix-1.7.9-32bit-glong-getCursorPosition.patch
+ '
+)"
+
diff --git a/community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch b/community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch
new file mode 100644
index 00000000..449e2209
--- /dev/null
+++ b/community/tilix/tilix-1.7.9-32bit-glong-getCursorPosition.patch
@@ -0,0 +1,12 @@
+diff -rauN tilix-1.7.9/source/gx/tilix/terminal/terminal.d tilix-1.7.9-32bit-glong-getCursorPosition-patch/source/gx/tilix/terminal/terminal.d
+--- tilix-1.7.9/source/gx/tilix/terminal/terminal.d 2018-04-29 01:49:55.000000000 +0200
++++ tilix-1.7.9-32bit-glong-getCursorPosition-patch/source/gx/tilix/terminal/terminal.d 2018-05-03 14:18:32.786498582 +0200
+@@ -1042,7 +1042,7 @@
+ if (vte is null) return false;
+
+ if (event.key.keyval == GdkKeysyms.GDK_Return && checkVTEFeature(TerminalFeature.EVENT_SCREEN_CHANGED) && currentScreen == TerminalScreen.NORMAL) {
+- long row, column;
++ glong row, column;
+ vte.getCursorPosition(column, row);
+ addPromptPosition(row);
+ tracef("Added prompt position %d", row);