aboutsummaryrefslogtreecommitdiff
path: root/editors/kakoune/files
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-04-25 10:52:10 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2018-04-25 10:52:10 +0000
commit9110aad970ba20583ef97d416d5e315d889636d1 (patch)
treeaa77d9c15e4b72a034ba357ae2b8df55b6cde67b /editors/kakoune/files
parentb9e35d2306ee417e1b01c5aac4a46d4ea5f29042 (diff)
Notes
Diffstat (limited to 'editors/kakoune/files')
-rw-r--r--editors/kakoune/files/patch-rc_extra_tmux-repl.kak20
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/kakoune/files/patch-rc_extra_tmux-repl.kak b/editors/kakoune/files/patch-rc_extra_tmux-repl.kak
new file mode 100644
index 000000000000..ecf6a78f5b55
--- /dev/null
+++ b/editors/kakoune/files/patch-rc_extra_tmux-repl.kak
@@ -0,0 +1,20 @@
+tmux-repl fails on FreeBSD and claims that tmux' version is too old even
+though tmux >= 2 is installed.
+
+The expr is only compatible with GNU expr.
+
+https://github.com/mawww/kakoune/pull/2006
+
+--- rc/extra/tmux-repl.kak.orig 2018-04-12 11:28:15 UTC
++++ rc/extra/tmux-repl.kak
+@@ -4,8 +4,8 @@
+ hook global KakBegin .* %{
+ %sh{
+ if [ -n "$TMUX" ]; then
+- VERSION_TMUX=$(tmux -V)
+- VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\|master\)')
++ VERSION_TMUX=$(tmux -V | cut -d' ' -f2)
++ VERSION_TMUX=${VERSION_TMUX%%.*}
+
+ if [ "${VERSION_TMUX}" = "master" ] \
+ || [ "${VERSION_TMUX}" -ge 2 ]; then