Skip to content

Commit

Permalink
Merge remote-tracking branch 'vim/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ychin committed Oct 5, 2023
2 parents efd97fd + ac9c6d5 commit 42f62db
Show file tree
Hide file tree
Showing 60 changed files with 1,657 additions and 286 deletions.
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ environment:
# disabled
# - FEATURE: TINY
# - FEATURE: NORMAL
# - FEATURE: BIG

matrix:
fast_finish: true
Expand Down
46 changes: 23 additions & 23 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#env:
# CIRRUS_CLONE_DEPTH: 3
# FEATURES: huge
#
#freebsd_task:
# name: FreeBSD
# matrix:
# - name: FreeBSD 14.0
# freebsd_instance:
# image_family: freebsd-14-0
# timeout_in: 20m
# install_script:
# - pkg install -y gettext
# build_script:
# - NPROC=$(getconf _NPROCESSORS_ONLN)
# - ./configure --with-features=${FEATURES}
# - make -j${NPROC}
# test_script:
# - src/vim --version
# # run tests as user "cirrus" instead of root
# - pw useradd cirrus -m
# - chown -R cirrus:cirrus .
# - sudo -u cirrus make test
env:
CIRRUS_CLONE_DEPTH: 3
FEATURES: huge

freebsd_task:
name: FreeBSD
matrix:
- name: FreeBSD 14.0
freebsd_instance:
image_family: freebsd-14-0
timeout_in: 20m
install_script:
- pkg install -y gettext
build_script:
- NPROC=$(getconf _NPROCESSORS_ONLN)
- ./configure --with-features=${FEATURES}
- make -j${NPROC}
test_script:
- src/vim --version
# run tests as user "cirrus" instead of root
- pw useradd cirrus -m
- chown -R cirrus:cirrus .
- sudo -u cirrus make test
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ coverage:
default:
threshold: 0.05%

comment: false

# Files not run by tests
ignore:
- "src/dosinst.c"
Expand Down
2 changes: 1 addition & 1 deletion READMEdir/README_os390.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Change to the vim directory and do:

$ export CC=cc
$ export _CC_CCMODE=1
$./configure --with-features=big --without-x --enable-gui=no
$./configure --with-features=normal --without-x --enable-gui=no
$ cd src
$ make

Expand Down
17 changes: 13 additions & 4 deletions runtime/autoload/netrw.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3516,6 +3516,11 @@ fun! s:NetrwBookHistHandler(chg,curdir)
echo "bookmarked the current directory"
endif

try
call s:NetrwBookHistSave()
catch
endtry

elseif a:chg == 1
" change to the bookmarked directory
" call Decho("(user: <".v:count."gb>) change to the bookmarked directory",'~'.expand("<slnum>"))
Expand Down Expand Up @@ -3660,6 +3665,11 @@ fun! s:NetrwBookHistHandler(chg,curdir)
" call Decho("g:netrw_bookmarklist=".string(g:netrw_bookmarklist),'~'.expand("<slnum>"))
endif
" call Decho("resulting g:netrw_bookmarklist=".string(g:netrw_bookmarklist),'~'.expand("<slnum>"))

try
call s:NetrwBookHistSave()
catch
endtry
endif
call s:NetrwBookmarkMenu()
call s:NetrwTgtMenu()
Expand Down Expand Up @@ -7382,8 +7392,7 @@ fun! s:NetrwMarkFileDiff(islocal)
exe "NetrwKeepj e ".fnameescape(fname)
diffthis
elseif cnt == 2 || cnt == 3
vsplit
wincmd l
below vsplit
" call Decho("diffthis: ".fname,'~'.expand("<slnum>"))
exe "NetrwKeepj e ".fnameescape(fname)
diffthis
Expand Down Expand Up @@ -12044,9 +12053,9 @@ fun! s:NetrwBufRemover(bufid)
" call Decho("buf#".a:bufid." has name <".bufname(a:bufid).">","~".expand("<slnum>"))
" call Decho("buf#".a:bufid." has winid#".bufwinid(a:bufid),"~".expand("<slnum>"))

if a:bufid > 1 && !buflisted(a:bufid) && bufname(a:bufid) == "" && bufwinid(a:bufid) == -1
if a:bufid > 1 && !buflisted(a:bufid) && bufloaded(a:bufid) && bufname(a:bufid) == "" && bufwinid(a:bufid) == -1
" call Decho("(s:NetrwBufRemover) removing buffer#".a:bufid,"~".expand("<slnum>"))
exe "bd! ".a:bufid
exe "sil! bd! ".a:bufid
endif

" call Dret("s:NetrwBufRemover")
Expand Down
8 changes: 8 additions & 0 deletions runtime/doc/builtin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6886,6 +6886,14 @@ printf({fmt}, {expr1} ...) *printf()*
< E1505: Invalid format specifier:
%1$d at width %2$d is: %01$*2$.3$d

*E1507*
This internal error indicates that the logic to
parse a positional format error ran into a problem
that couldn't be otherwise reported. Please file a
bug against vim if you run into this, copying the
exact format string and parameters that were used.


prompt_getprompt({buf}) *prompt_getprompt()*
Returns the effective prompt text for buffer {buf}. {buf} can
be a buffer name or number. See |prompt-buffer|.
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ Set using a variable with lambda expression: >
let &tagfunc = L
In Vim9 script, in a compiled function, you can use a lambda, but a
closured does not work, because the function will be called without the
closure does not work, because the function will be called without the
context of where it was defined.


Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/starting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,6 @@ most of the information will be restored).
If you get the |press-enter| prompt you can press "q"
and still get the prompt to enter a file number.
Use ! to abandon a modified buffer. |abandon|
{not when compiled with tiny or small features}
{not when compiled with tiny features}

vim:tw=78:ts=8:noet:ft=help:norl:
1 change: 1 addition & 0 deletions runtime/doc/tags
Original file line number Diff line number Diff line change
Expand Up @@ -4564,6 +4564,7 @@ E1503 builtin.txt /*E1503*
E1504 builtin.txt /*E1504*
E1505 builtin.txt /*E1505*
E1506 editing.txt /*E1506*
E1507 builtin.txt /*E1507*
E1508 editing.txt /*E1508*
E1509 editing.txt /*E1509*
E151 helphelp.txt /*E151*
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Vim can be tested after building it, usually with "make test".
The tests are located in the directory "src/testdir".

There are two types of tests added over time:
test20.in oldest, only for tiny and small builds
test20.in oldest, only for tiny builds
test_something.vim new style tests

*new-style-testing*
Expand Down
5 changes: 2 additions & 3 deletions runtime/doc/usr_90.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ enabled from the Makefile.

--prefix={directory} Top directory where to install Vim.

--with-features=tiny Compile with many features disabled.
--with-features=small Compile with some features disabled.
--with-features=big Compile with more features enabled.
--with-features=tiny Compile with some features disabled.
--with-features=normal Compile with more features enabled.
--with-features=huge Compile with most features enabled.
See |+feature-list| for which feature
is enabled in which case.
Expand Down
4 changes: 1 addition & 3 deletions runtime/doc/various.txt
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,13 @@ g8 Print the hex values of the bytes used in the
The first column shows the smallest version in which
they are included:
T tiny (always)
S small
N normal
B big
H huge
m manually enabled or depends on other features
- never, feature was removed
(none) system dependent
Thus if a feature is marked with "N", it is included
in the normal, big and huge versions of Vim.
in the normal and huge versions of Vim.

*+feature-list*
*+acl* |ACL| support included
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/vim9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ filename. For example: >
Then you can use "that.item", etc. You are free to choose the name "that".
Use something that will be recognized as referring to the imported script.
Avoid command names, command modifiers and builtin function names, because the
name will shadow them. Better not start the name starts with a capital
name will shadow them. It's better not to start the name with a capital
letter, since it can then also shadow global user commands and functions.
Also, you cannot use the name for something else in the script, such as a
function or variable name.
Expand Down
25 changes: 15 additions & 10 deletions runtime/doc/xxd-it.1
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ Pertanto
.B \-c 010
e
.B \-cols 8
sono notazioni equivalenti fra loro.
sono tutte notazioni equivalenti fra loro.
.PP
.TP
.IR \-a " | " \-autoskip
Richiesta di omissione: Un singolo '*' rimpiazza righe a zeri binari. Default: off.
.TP
.IR \-b " | " \-bits
Richiesta di una immagine binaria (cifre binarie), invece che esadecimale.
Richiesta di un'immagine binaria (cifre binarie), invece che esadecimale.
Quest'opzione scrive un byte come otto cifre "1" e "0" invece di usare i
numeri esadecimali. Ogni riga è preceduta da un indirizzo in esadecimale e
seguita da una decodifica ASCII (o EBCDIC). Le opzioni specificabili dalla
riga comando \-r, \-p, \-i non funzionano in questo modo.
seguita da una decodifica ASCII (o EBCDIC). Le opzioni \-r, \-p, \-i,
specificabili dalla riga comando, non funzionano in questo modo.
.TP
.IR "\-c colonne " | " \-cols colonne"
In ogni riga sono formattate
Expand Down Expand Up @@ -123,22 +123,28 @@ Aggiunge
alla posizione visualizzata dei byte del file.
.TP
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
L'output è nello stile di un dump esadecimale continuo sotto postscript. Noto anche come stile esadecimale semplice.
L'output è nello stile di un dump esadecimale continuo sotto postscript.
Noto anche come stile esadecimale semplice.
.TP
.IR \-r " | " \-revert
Ricostruisce: converte (o mette una patch) da immagine esadecimale, a file binario.
Se non scrive sullo `standard output', xxd scrive nel file di output in maniera
continua, senza interruzioni. Usare la combinazione
.I \-r \-p
per leggere dump in stile esadecimale semplice, senza l'informazione del numero
di riga e senza un particolare tracciato di colonna. Spazi o righe vuote possono
essere presenti [e vengono ignorati].
di riga e senza un particolare tracciato di colonna. Spazi o righe vuote
possono essere presenti [e vengono ignorati].
.TP
.IR \-R " "[quando]
Nell'output i valori esadecimali e i caratteri corrispondenti hanno entrambi lo stesso colore, a seconda del valore esadecimale. Utile soprattutto a distinguere i caratteri stampabili da quello non stampabili.
Nell'output i valori esadecimali e i caratteri corrispondenti hanno entrambi
lo stesso colore, a seconda del valore esadecimale. Utile soprattutto a
distinguere i caratteri stampabili da quelli non stampabili.
.I quando
può assumere i valori
.BR never ", " always ", o " auto .
Quando la variabile d'ambiente
.BR $NO_COLOR
è impostata, la colorazione viene disabilitata.
.TP
.I \-seek distanza
Usato con l'opzione
Expand Down Expand Up @@ -218,8 +224,7 @@ L'autore preferisce monitorare il comportamento di xxd con strace(1) o truss(1),
.PP
.br
Stampa tutto tranne le prime tre righe (0x30 byte in esadecimale) di
.BR file
\.
.BR file .
.br
\fI% xxd \-s 0x30 file\fR
.PP
Expand Down
25 changes: 15 additions & 10 deletions runtime/doc/xxd-it.UTF-8.1
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ Pertanto
.B \-c 010
e
.B \-cols 8
sono notazioni equivalenti fra loro.
sono tutte notazioni equivalenti fra loro.
.PP
.TP
.IR \-a " | " \-autoskip
Richiesta di omissione: Un singolo '*' rimpiazza righe a zeri binari. Default: off.
.TP
.IR \-b " | " \-bits
Richiesta di una immagine binaria (cifre binarie), invece che esadecimale.
Richiesta di un'immagine binaria (cifre binarie), invece che esadecimale.
Quest'opzione scrive un byte come otto cifre "1" e "0" invece di usare i
numeri esadecimali. Ogni riga è preceduta da un indirizzo in esadecimale e
seguita da una decodifica ASCII (o EBCDIC). Le opzioni specificabili dalla
riga comando \-r, \-p, \-i non funzionano in questo modo.
seguita da una decodifica ASCII (o EBCDIC). Le opzioni \-r, \-p, \-i,
specificabili dalla riga comando, non funzionano in questo modo.
.TP
.IR "\-c colonne " | " \-cols colonne"
In ogni riga sono formattate
Expand Down Expand Up @@ -123,22 +123,28 @@ Aggiunge
alla posizione visualizzata dei byte del file.
.TP
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
L'output è nello stile di un dump esadecimale continuo sotto postscript. Noto anche come stile esadecimale semplice.
L'output è nello stile di un dump esadecimale continuo sotto postscript.
Noto anche come stile esadecimale semplice.
.TP
.IR \-r " | " \-revert
Ricostruisce: converte (o mette una patch) da immagine esadecimale, a file binario.
Se non scrive sullo `standard output', xxd scrive nel file di output in maniera
continua, senza interruzioni. Usare la combinazione
.I \-r \-p
per leggere dump in stile esadecimale semplice, senza l'informazione del numero
di riga e senza un particolare tracciato di colonna. Spazi o righe vuote possono
essere presenti [e vengono ignorati].
di riga e senza un particolare tracciato di colonna. Spazi o righe vuote
possono essere presenti [e vengono ignorati].
.TP
.IR \-R " "[quando]
Nell'output i valori esadecimali e i caratteri corrispondenti hanno entrambi lo stesso colore, a seconda del valore esadecimale. Utile soprattutto a distinguere i caratteri stampabili da quello non stampabili.
Nell'output i valori esadecimali e i caratteri corrispondenti hanno entrambi
lo stesso colore, a seconda del valore esadecimale. Utile soprattutto a
distinguere i caratteri stampabili da quelli non stampabili.
.I quando
può assumere i valori
.BR never ", " always ", o " auto .
Quando la variabile d'ambiente
.BR $NO_COLOR
è impostata, la colorazione viene disabilitata.
.TP
.I \-seek distanza
Usato con l'opzione
Expand Down Expand Up @@ -218,8 +224,7 @@ L'autore preferisce monitorare il comportamento di xxd con strace(1) o truss(1),
.PP
.br
Stampa tutto tranne le prime tre righe (0x30 byte in esadecimale) di
.BR file
\.
.BR file .
.br
\fI% xxd \-s 0x30 file\fR
.PP
Expand Down
7 changes: 6 additions & 1 deletion runtime/doc/xxd.1
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,15 @@ particular column layout. Additional whitespace and line breaks are allowed
anywhere.
.TP
.IR \-R " " when
In output the hex-value and the value are both colored with the same color depending on the hex-value. Mostly helping to differentiate printable and non-printable characters.
In output the hex-value and the value are both colored with the same color
depending on the hex-value. Mostly helping to differentiate printable and
non-printable characters.
.I \fIwhen\fP
is
.BR never ", " always ", or " auto .
When the
.BR $NO_COLOR
environment variable is set, colorization will be disabled.
.TP
.I \-seek offset
When used after
Expand Down
Loading

0 comments on commit 42f62db

Please sign in to comment.