Mercurial > vim
view runtime/doc/evim-it.UTF-8.1 @ 33947:f4d88db48a63 v9.0.2168
patch 9.0.2168: Moving tabpages on :drop may cause an endless loop
Commit: https://github.com/vim/vim/commit/df12e39b8b9dd39056e22b452276622cb7b617fd
Author: Christian Brabandt <cb@256bit.org>
Date: Sat Dec 16 13:55:32 2023 +0100
patch 9.0.2168: Moving tabpages on :drop may cause an endless loop
Problem: Moving tabpages on :drop may cause an endless loop
Solution: Disallow moving tabpages on :drop when cleaning up the arglist
first
Moving tabpages during drop command may cause an endless loop
When executing a :tab drop command, Vim will close all windows not in
the argument list. This triggers various autocommands. If a user has
created an 'au Tabenter * :tabmove -' autocommand, this can cause Vim to
end up in an endless loop, when trying to iterate over all tabs (which
would trigger the tabmove autocommand, which will change the tpnext
pointer, etc).
So instead of blocking all autocommands before we actually try to edit
the given file, lets simply disallow to move tabpages around. Otherwise,
we may change the expected number of events triggered during a :drop
command, which users may rely on (there is actually a test, that expects
various TabLeave/TabEnter autocommands) and would therefore be a
backwards incompatible change.
Don't make this an error, as this could trigger several times during the
drop command, but silently ignore the :tabmove command in this case (and
it should in fact finally trigger successfully when loading the given
file in a new tab). So let's just be quiet here instead.
fixes: #13676
closes: #13686
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Dec 2023 14:00:05 +0100 |
parents | 65b122a95cba |
children |
line wrap: on
line source
.TH EVIM 1 "16 febbraio 2002 " .SH NOME evim \- Vim "facile", impostato in modo da poter essere usato come editore non-modale .SH SINTASSI .br .B evim [opzioni] [file ..] .br .B eview .SH DESCRIZIONE .B evim Inizia .B Vim e imposta le opzioni per farlo comportare come un editore non-modale. Si tratta sempre di Vim, ma usato nello stile "posizionati-e-clicca". Rammenta molto l'utilizzo di Notepad in MS-Windows. .B eVim necessita della disponibilità della GUI, per utilizzare menù e barra strumenti. .PP Va a usato soltanto se non si è in grado di lavorare con Vim nella maniera usuale. L'edit dei file sarà molto meno efficiente. .PP .B eview come sopra, ma si parte in modalità "Sola Lettura". Funziona come evim \-R. .PP Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc. .PP L'opzione 'insertmode' è impostata in modo da consentire l'immissione diretta di testo fin dall'inizio. .br Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i familiari tasti usati sotto MS-Windows. CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo. Occorre usare CTRL-Q per ottenere il comportamenti di CTRL-V in Vim nativo. .SH OPZIONI Vedere vim(1). .SH FILE .TP 15 /usr/local/lib/vim/evim.vim Lo script caricato per inizializzare eVim. .SH AKA [Also Known As] noto anche come "Vim per semplici". Quando is usa evim si suppone che si prenda un fazzoletto, si faccia un nodo ad ogni angolo e lo si metta in testa. .SH VEDERE ANCHE vim(1) .SH AUTORE Buona parte di .B Vim è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri. Vedere il menù "Aiuto/Crediti".