Update to the latest master

This commit is contained in:
Matej Cepl 2022-07-02 11:09:30 +02:00
parent 076ae1109a
commit dc7ccf12ce
5 changed files with 10 additions and 41 deletions

4
.gitignore vendored
View File

@ -1,2 +1,6 @@
.osc
build.specials.obscpio
series
*.obscpio
vis/
vis-test/

View File

@ -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);
}

View File

@ -1,22 +0,0 @@
From 880acf5d42d1844a10fa3397961a4e02700ad4af Mon Sep 17 00:00:00 2001
From: Aki <please@ignore.pl>
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.

View File

@ -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

View File

@ -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.