From dc7ccf12ce11e044af138b1a999350674959f820a8a756b0d2c8048c3be2c8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Sat, 2 Jul 2022 11:09:30 +0200 Subject: [PATCH] Update to the latest master --- .gitignore | 4 ++++ 675-non-block_subproc.patch | 6 +++--- 977-makefile-multiple-targets.patch | 22 ---------------------- no-EOL-to-wl-clipboard.patch | 16 +++------------- vis.spec | 3 --- 5 files changed, 10 insertions(+), 41 deletions(-) delete mode 100644 977-makefile-multiple-targets.patch diff --git a/.gitignore b/.gitignore index 83086a5..d590765 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ .osc build.specials.obscpio +series +*.obscpio +vis/ +vis-test/ diff --git a/675-non-block_subproc.patch b/675-non-block_subproc.patch index 76bb704..c57ab48 100644 --- a/675-non-block_subproc.patch +++ b/675-non-block_subproc.patch @@ -70,7 +70,7 @@ #else -@@ -1368,6 +1379,47 @@ static int redraw(lua_State *L) { +@@ -1372,6 +1383,47 @@ static int redraw(lua_State *L) { return 0; } /*** @@ -118,7 +118,7 @@ * Currently active window. * @tfield Window win * @see windows -@@ -1524,6 +1576,7 @@ static const struct luaL_Reg vis_lua[] = +@@ -1528,6 +1580,7 @@ static const struct luaL_Reg vis_lua[] = { "exit", exit_func }, { "pipe", pipe_func }, { "redraw", redraw }, @@ -126,7 +126,7 @@ { "__index", vis_index }, { "__newindex", vis_newindex }, { NULL, NULL }, -@@ -3135,5 +3188,34 @@ void vis_lua_term_csi(Vis *vis, const lo +@@ -3139,5 +3192,34 @@ void vis_lua_term_csi(Vis *vis, const lo } lua_pop(L, 1); } diff --git a/977-makefile-multiple-targets.patch b/977-makefile-multiple-targets.patch deleted file mode 100644 index e4cc9ab..0000000 --- a/977-makefile-multiple-targets.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 880acf5d42d1844a10fa3397961a4e02700ad4af Mon Sep 17 00:00:00 2001 -From: Aki -Date: Mon, 16 Aug 2021 22:24:18 +0200 -Subject: [PATCH 1/2] Makefile lexer now supports multiple targets in single - definition - ---- - lua/lexers/makefile.lua | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - ---- a/lua/lexers/makefile.lua -+++ b/lua/lexers/makefile.lua -@@ -72,7 +72,8 @@ local special_target = token(l.CONSTANT, - '.SILENT', '.EXPORT_ALL_VARIABLES', '.NOTPARALLEL', '.ONESHELL', '.POSIX' - }, '.')) - local normal_target = token('target', (l.any - l.space - S(':#='))^1) --local target = l.starts_line((special_target + normal_target) * ws^0 * -+local target_list = normal_target * (ws * normal_target)^0 -+local target = l.starts_line((special_target + target_list) * ws^0 * - #(':' * -P('='))) - - -- Identifiers. diff --git a/no-EOL-to-wl-clipboard.patch b/no-EOL-to-wl-clipboard.patch index c840f2f..be55ae6 100644 --- a/no-EOL-to-wl-clipboard.patch +++ b/no-EOL-to-wl-clipboard.patch @@ -34,22 +34,12 @@ Best, Matěj --- - vis-clipboard | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) + vis-clipboard | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) --- a/vis-clipboard +++ b/vis-clipboard -@@ -81,17 +81,17 @@ vc_paste() { - - vc_wlclipboard_copy() { - if [ "$sel" = "primary" ]; then -- wl-copy --primary -t TEXT -+ wl-copy --trim-newline --primary -t TEXT - else -- wl-copy -t TEXT -+ wl-copy --trim-newline -t TEXT - fi - } +@@ -89,9 +89,9 @@ vc_wlclipboard_copy() { vc_wlclipboard_paste() { if [ "$sel" = "primary" ]; then diff --git a/vis.spec b/vis.spec index 0696314..3911944 100644 --- a/vis.spec +++ b/vis.spec @@ -46,9 +46,6 @@ Patch4: 617-vis-highlight.patch # PATCH-FEATURE-UPSTREAM 959-flexible-insert-completion.patch gh#martanne/vis#959 # allow changes for https://github.com/jpaulogg/vis-ins-completion/tree/flex-completion Patch5: 959-flexible-insert-completion.patch -# PATCH-FEATURE-UPSTREAM 977-makefile-multiple-targets.patch gh#martanne/vis#977 -# lexers/makefile: Support multiple targets in a single definition -Patch6: 977-makefile-multiple-targets.patch # PATCH-FIX-UPSTREAM 558-gf_reimplementation.patch gh#martanne/vis#558 mcepl@suse.com # Implementation of the gf command, v2 # This patch seems to ignite gh#martanne/vis#827 again.