neovim: Add patch to fix unibilium assertion

This commit is contained in:
Fredrik Fornwall 2017-08-22 11:57:37 +02:00
parent 7eb07a43bd
commit 8b5db919e7
2 changed files with 17 additions and 3 deletions

View File

@ -1,8 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://neovim.io/
TERMUX_PKG_DESCRIPTION="Ambitious Vim-fork focused on extensibility and agility (nvim)"
local _COMMIT=5b32bce73c93a64970afe0e92e0a8ba2fed88619
TERMUX_PKG_VERSION=0.2.1~20170816
TERMUX_PKG_SHA256=7f7e9879a81f8484569f00e8cc510056fca4990485ffbb7bf24884f53724014a
local _COMMIT=9ff0cc70855fc3eb11ad0162ee02e742f354d360
TERMUX_PKG_VERSION=0.2.1~20170822
TERMUX_PKG_SHA256=8d97b6d3e7b185ee41992fb599db5df10beeba311b57580c75ec8fb078aa3e02
TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/${_COMMIT}.zip
TERMUX_PKG_DEPENDS="libuv, libmsgpack, libandroid-support, libvterm, libtermkey, libutil, liblua"
TERMUX_PKG_FOLDERNAME="neovim-$_COMMIT"

View File

@ -0,0 +1,14 @@
Submitted upstream at https://github.com/neovim/neovim/pull/7204
diff -u -r ../neovim-9ff0cc70855fc3eb11ad0162ee02e742f354d360/src/nvim/tui/tui.c ./src/nvim/tui/tui.c
--- ../neovim-9ff0cc70855fc3eb11ad0162ee02e742f354d360/src/nvim/tui/tui.c 2017-08-22 01:46:43.000000000 +0200
+++ ./src/nvim/tui/tui.c 2017-08-22 11:43:41.213726717 +0200
@@ -1189,7 +1189,7 @@
const char *str = NULL;
if (unibi_index >= 0) {
- if (unibi_index < unibi_string_begin_) {
+ if (unibi_index <= unibi_string_begin_) {
str = unibi_get_ext_str(data->ut, (unsigned)unibi_index);
} else {
str = unibi_get_str(data->ut, (unsigned)unibi_index);