Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into tabsidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtnn committed Oct 16, 2024
2 parents 30b993e + 6c2fc37 commit e2e2933
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 27 deletions.
4 changes: 2 additions & 2 deletions runtime/doc/builtin.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*builtin.txt* For Vim version 9.1. Last change: 2024 Oct 14
*builtin.txt* For Vim version 9.1. Last change: 2024 Oct 16


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -11954,7 +11954,7 @@ wildmenumode() *wildmenumode()*
For example to make <c-j> work like <down> in wildmode, use: >
:cnoremap <expr> <C-j> wildmenumode() ? "\<Down>\<Tab>" : "\<c-j>"
<
(Note, this needs the 'wildcharm' option set appropriately).
(Note: this needs the 'wildcharm' option set appropriately).

Return type: |Number|

Expand Down
6 changes: 4 additions & 2 deletions runtime/doc/options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim version 9.1. Last change: 2024 Oct 14
*options.txt* For Vim version 9.1. Last change: 2024 Oct 16


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -8768,7 +8768,9 @@ A jump table for the options with a short description can be found at |Q_op|.
be restored if possible, see |X11|.

When this option contains printf-style '%' items, they will be
expanded according to the rules used for 'statusline'.
expanded according to the rules used for 'statusline'. If it contains
an invalid '%' format, the value is used as-is and no error or warning
will be given when the value is set.
This option cannot be set in a modeline when 'modelineexpr' is off.

Example: >
Expand Down
8 changes: 4 additions & 4 deletions runtime/doc/repeat.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*repeat.txt* For Vim version 9.1. Last change: 2024 Oct 05
*repeat.txt* For Vim version 9.1. Last change: 2024 Oct 16


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1398,9 +1398,9 @@ For example, to profile the one_script.vim script file: >
clear the profiling statistics and start profiling again.

:prof[ile] pause
Don't profile until the following `:profile continue`. Can be
used when doing something that should not be counted (e.g., an
external command). Does not nest.
Stop profiling until the next `:profile continue` command.
Can be used when doing something that should not be counted
(e.g., an external command). Does not nest.

:prof[ile] continue
Continue profiling after `:profile pause`.
Expand Down
23 changes: 9 additions & 14 deletions runtime/syntax/help.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Vim help file
" Maintainer: The Vim Project <https://github.com/vim/vim>
" Last Change: 2024 Oct 08
" Last Change: 2024 Oct 16
" Former Maintainer: Bram Moolenaar <[email protected]>

" Quit when a (custom) syntax file was already loaded
Expand Down Expand Up @@ -47,7 +47,8 @@ syn match helpOption "'[a-z]\{2,\}'"
syn match helpOption "'t_..'"
syn match helpNormal "'ab'"
syn match helpCommand "`[^` \t]\+`"hs=s+1,he=e-1 contains=helpBacktick
syn match helpCommand "\(^\|[^a-z"[]\)\zs`[^`]\+`\ze\([^a-z\t."']\|$\)"hs=s+1,he=e-1 contains=helpBacktick
" doesn't allow a . directly after an ending backtick. See :helpgrep `[^`,]\+ [^`,]\+`\.
syn match helpCommand "\(^\|[^a-z"[]\)\zs`[^`]\+`\ze\([^a-z\t."']\|[.?!]\?$\)"hs=s+1,he=e-1 contains=helpBacktick
syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore
if has("conceal")
Expand All @@ -56,6 +57,7 @@ else
syn match helpIgnore "." contained
endif
syn keyword helpNote note Note NOTE note: Note: NOTE: Notes Notes:
syn match helpNote "\c(note\(:\|\>\)"ms=s+1
syn keyword helpWarning WARNING WARNING: Warning:
syn keyword helpDeprecated DEPRECATED DEPRECATED: Deprecated:
syn match helpSpecial "\<N\>"
Expand All @@ -68,6 +70,10 @@ syn match helpSpecial "\[N]"
syn match helpSpecial "N N"he=s+1
syn match helpSpecial "Nth"me=e-2
syn match helpSpecial "N-1"me=e-2
" highlighting N for :resize in windows.txt
syn match helpSpecial "] -N\>"ms=s+3
syn match helpSpecial "+N\>"ms=s+1
syn match helpSpecial "\[+-]N\>"ms=s+4
" highlighting N of cinoptions-values in indent.txt
syn match helpSpecial "^\t-\?\zsNs\?\s"me=s+1
" highlighting N of cinoptions-values in indent.txt
Expand Down Expand Up @@ -144,7 +150,7 @@ syn match helpUnderlined "\t[* ]Underlined\t\+[a-z].*"
syn match helpError "\t[* ]Error\t\+[a-z].*"
syn match helpTodo "\t[* ]Todo\t\+[a-z].*"

syn match helpURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-zA-Z0-9/]`
syn match helpURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^'" \t<>{}]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^'" \t<>{}]+)[a-zA-Z0-9/]`

syn match helpDiffAdded "\t[* ]Added\t\+[a-z].*"
syn match helpDiffChanged "\t[* ]Changed\t\+[a-z].*"
Expand All @@ -156,17 +162,6 @@ if s:i > 0
exe "runtime syntax/help_" . strpart(expand("%"), s:i + 1, 2) . ".vim"
endif

" Italian
if v:lang =~ '\<IT\>' || v:lang =~ '_IT\>' || v:lang =~? "italian"
syn keyword helpNote nota Nota NOTA nota: Nota: NOTA: notare Notare NOTARE notare: Notare: NOTARE:
syn match helpSpecial "Nma"me=e-2
syn match helpSpecial "Nme"me=e-2
syn match helpSpecial "Nmi"me=e-2
syn match helpSpecial "Nmo"me=e-2
syn match helpSpecial "\[interv.]"
syn region helpNotVi start="{non" start="{solo" start="{disponibile" end="}" contains=helpLeadBlank,helpHyperTextJump
endif

syn sync minlines=40


Expand Down
17 changes: 17 additions & 0 deletions runtime/syntax/help_it.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
" Vim syntax file
" Language: Italian Vim program help files *.itx
" Maintainer: The Vim Project <https://github.com/vim/vim>
" Last Change: 2024 Oct 16
"
" This script is sourced from syntax/help.vim.

syn keyword helpNote nota Nota NOTA nota: Nota: NOTA: notare Notare NOTARE notare: Notare: NOTARE:
syn match helpNote "\c(nota\(:\|\>\)"ms=s+1
syn match helpSpecial "Nma"me=e-2
syn match helpSpecial "Nme"me=e-2
syn match helpSpecial "Nmi"me=e-2
syn match helpSpecial "Nmo"me=e-2
syn match helpSpecial "\[interv.]"
syn region helpNotVi start="{non" start="{solo" start="{disponibile" end="}" contains=helpLeadBlank,helpHyperTextJump

" vim: ts=8 sw=2
3 changes: 2 additions & 1 deletion runtime/syntax/jinja.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
" Language: Jinja
" Maintainer: Gregory Anders
" Upstream: https://gitlab.com/HiPhish/jinja.vim
" Last Change: 2024 Oct 16

if exists('b:current_syntax')
if exists('b:current_syntax') && b:current_syntax =~? 'jinja'
finish
endif

Expand Down
8 changes: 5 additions & 3 deletions src/edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,8 @@ decodeModifyOtherKeys(int c)
if (typebuf.tb_len >= 4 && (c == CSI || (c == ESC && *p == '[')))
{
idx = (*p == '[');
if (p[idx] == '2' && p[idx + 1] == '7' && p[idx + 2] == ';')
if (p[idx] == '2' && p[idx + 1] == '7' && p[idx + 2] == ';' &&
kitty_protocol_state != KKPS_ENABLED)
{
form = 1;
idx += 3;
Expand All @@ -1640,9 +1641,10 @@ decodeModifyOtherKeys(int c)
break;
++idx;
}
int kitty_no_mods = argidx == 0 && kitty_protocol_state == KKPS_ENABLED;
if (idx < typebuf.tb_len
&& p[idx] == (form == 1 ? '~' : 'u')
&& argidx == 1)
&& (argidx == 1 || kitty_no_mods))
{
// Match, consume the code.
typebuf.tb_off += idx + 1;
Expand All @@ -1652,7 +1654,7 @@ decodeModifyOtherKeys(int c)
typebuf_was_filled = FALSE;
#endif

mod_mask = decode_modifiers(arg[!form]);
mod_mask = kitty_no_mods ? 0 : decode_modifiers(arg[!form]);
c = merge_modifyOtherKeys(arg[form], &mod_mask);
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/testdir/test_termcodes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,12 @@ func Test_xx08_kitty_response()
\ kitty: 'y',
\ }, terminalprops())

call feedkeys("\<Esc>[?1u") " simulate the kitty keyboard protocol is enabled
call feedkeys(':' .. GetEscCodeCSIu('V', '5') .. GetEscCodeCSIuWithoutModifier("\<Esc>") .. "\<C-B>\"\<CR>", 'Lx!')
call assert_equal("\"\<Esc>", @:)
call feedkeys(':' .. GetEscCodeCSIu('V', '5') .. GetEscCodeCSIu("\<Esc>", '129') .. "\<C-B>\"\<CR>", 'Lx!')
call assert_equal("\"\<Esc>", @:)

set t_RV=
call test_override('term_props', 0)
endfunc
Expand Down
2 changes: 1 addition & 1 deletion src/testdir/test_window_cmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ func Test_equalalways_on_close()
1wincmd w
split
4wincmd w
resize + 5
resize +5
" left column has three windows, equalized heights.
" right column has two windows, top one a bit higher
let height_1 = winheight(1)
Expand Down
4 changes: 4 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,10 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
789,
/**/
788,
/**/
787,
/**/
Expand Down

0 comments on commit e2e2933

Please sign in to comment.