0
0
mirror of https://github.com/vim/vim.git synced 2025-08-27 20:13:38 -04:00

updated for version 7.0182

This commit is contained in:
Bram Moolenaar 2006-01-19 22:09:32 +00:00
parent c32840f267
commit 05a7bb363b
10 changed files with 172 additions and 76 deletions

View File

@ -1,4 +1,4 @@
*cmdline.txt* For Vim version 7.0aa. Last change: 2005 Dec 30 *cmdline.txt* For Vim version 7.0aa. Last change: 2006 Jan 19
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -153,8 +153,9 @@ CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>*
*c_CTRL-R_=* *c_CTRL-R_=*
'=' the expression register: you are prompted to '=' the expression register: you are prompted to
enter an expression (see |expression|) enter an expression (see |expression|)
(doesn't work at the expression prompt; uses (doesn't work at the expression prompt; some
the |sandbox| to avoid side effects) things such as changing the buffer or current
window are not allowed to avoid side effects)
See |registers| about registers. {not in Vi} See |registers| about registers. {not in Vi}
Implementation detail: When using the |expression| register Implementation detail: When using the |expression| register
and invoking setcmdpos(), this sets the position before and invoking setcmdpos(), this sets the position before

View File

@ -2,8 +2,9 @@
" Language: PHP " Language: PHP
" Author: John Wellesz <John.wellesz (AT) teaser (DOT) fr> " Author: John Wellesz <John.wellesz (AT) teaser (DOT) fr>
" URL: http://www.2072productions.com/vim/indent/php.vim " URL: http://www.2072productions.com/vim/indent/php.vim
" Last Change: 2005 Nobember 21st " Last Change: 2006 January 15th
" Version: 1.20 " Newsletter: http://www.2072productions.com/?to=php-indent-for-vim-newsletter.php
" Version: 1.23
" "
" The change log and all the comments have been removed from this file. " The change log and all the comments have been removed from this file.
" "
@ -11,14 +12,14 @@
" 2072productions.com at the URI provided above. " 2072productions.com at the URI provided above.
" "
" If you find a bug, please e-mail me at John.wellesz (AT) teaser (DOT) fr " If you find a bug, please e-mail me at John.wellesz (AT) teaser (DOT) fr
" with an example of code that break the algorithm. " with an example of code that breaks the algorithm.
" "
" "
" Thanks a lot for using this script. " Thanks a lot for using this script.
" "
" "
" NOTE: This script must be used with PHP syntax ON and with the php syntax " NOTE: This script must be used with PHP syntax ON and with the php syntax
" script by Lutz Eymers (http://www.isp.de/data/php.vim ) that's the script bundled with Gvim. " script by Lutz Eymers ( http://www.isp.de/data/php.vim ) that's the script bundled with Vim.
" "
" "
" In the case you have syntax errors in your script such as end of HereDoc " In the case you have syntax errors in your script such as end of HereDoc
@ -69,6 +70,10 @@
if exists("b:did_indent") if exists("b:did_indent")
finish finish
endif endif
@ -136,7 +141,13 @@ let s:PHP_startindenttag = '<?\%(.*?>\)\@!\|<script[^>]*>\%(.*<\/script>\)\@!'
function! GetLastRealCodeLNum(startline) " {{{ function! GetLastRealCodeLNum(startline) " {{{
let lnum = a:startline let lnum = a:startline
if b:GetLastRealCodeLNum_ADD && b:GetLastRealCodeLNum_ADD == lnum + 1
let lnum = b:GetLastRealCodeLNum_ADD
endif
let old_lnum = lnum let old_lnum = lnum
while lnum > 1 while lnum > 1
@ -288,7 +299,7 @@ function! IslinePHP (lnum, tofind) " {{{
endfunction " }}} endfunction " }}}
let s:notPhpHereDoc = '\%(break\|return\|continue\|exit\);' let s:notPhpHereDoc = '\%(break\|return\|continue\|exit\);'
let s:blockstart = '\%(\%(\%(}\s*\)\=else\%(\s\+\)\=\)\=if\>\|else\>\|while\>\|switch\>\|for\%(each\)\=\>\|declare\>\|class\>\|interface\>\|abstract\>\|[|&]\)' let s:blockstart = '\%(\%(\%(}\s*\)\=else\%(\s\+\)\=\)\=if\>\|else\>\|while\>\|switch\>\|for\%(each\)\=\>\|declare\>\|class\>\|interface\>\|abstract\>\|try\>\|catch\>\|[|&]\)'
let s:autorestoptions = 0 let s:autorestoptions = 0
if ! s:autorestoptions if ! s:autorestoptions
@ -316,6 +327,8 @@ endfunc
function! GetPhpIndent() function! GetPhpIndent()
let b:GetLastRealCodeLNum_ADD = 0
let UserIsEditing=0 let UserIsEditing=0
if b:PHP_oldchangetick != b:changedtick if b:PHP_oldchangetick != b:changedtick
let b:PHP_oldchangetick = b:changedtick let b:PHP_oldchangetick = b:changedtick
@ -361,7 +374,10 @@ function! GetPhpIndent()
if !b:InPHPcode_checked " {{{ One time check if !b:InPHPcode_checked " {{{ One time check
let b:InPHPcode_checked = 1 let b:InPHPcode_checked = 1
let synname = ""
if cline !~ '<?.*?>'
let synname = IslinePHP (prevnonblank(v:lnum), "") let synname = IslinePHP (prevnonblank(v:lnum), "")
endif
if synname!="" if synname!=""
if synname != "phpHereDoc" if synname != "phpHereDoc"
@ -425,6 +441,7 @@ function! GetPhpIndent()
elseif cline =~? '<script\>' elseif cline =~? '<script\>'
let b:InPHPcode_and_script = 1 let b:InPHPcode_and_script = 1
let b:GetLastRealCodeLNum_ADD = v:lnum
endif endif
endif endif
endif endif
@ -453,11 +470,11 @@ function! GetPhpIndent()
endif endif
endif " }}} endif " }}}
if !b:InPHPcode && !b:InPHPcode_and_script if !b:InPHPcode && !b:InPHPcode_and_script
return -1 return -1
endif endif
" Indent successive // or # comment the same way the first is {{{ " Indent successive // or # comment the same way the first is {{{
if cline =~ '^\s*\%(//\|#\|/\*.*\*/\s*$\)' if cline =~ '^\s*\%(//\|#\|/\*.*\*/\s*$\)'
if b:PHP_LastIndentedWasComment == 1 if b:PHP_LastIndentedWasComment == 1
@ -482,9 +499,11 @@ function! GetPhpIndent()
endif endif
endif endif
if !b:PHP_InsideMultilineComment && cline =~ '^\s*/\*' if !b:PHP_InsideMultilineComment && cline =~ '^\s*/\*' && cline !~ '\*/\s*$'
let b:PHP_InsideMultilineComment = 1 if getline(v:lnum + 1) !~ '^\s*\*'
return -1 return -1
endif
let b:PHP_InsideMultilineComment = 1
endif " }}} endif " }}}
@ -504,6 +523,7 @@ function! GetPhpIndent()
let s:level = 0 let s:level = 0
let lnum = GetLastRealCodeLNum(v:lnum - 1) let lnum = GetLastRealCodeLNum(v:lnum - 1)
let last_line = getline(lnum) let last_line = getline(lnum)
let ind = indent(lnum) let ind = indent(lnum)
let endline= s:endline let endline= s:endline

View File

@ -1,8 +1,8 @@
*** nl_NL.orig.aff Sun Jul 3 18:24:07 2005 *** nl_NL.orig.aff Sun Jul 3 18:24:07 2005
--- nl_NL.aff Tue Aug 23 14:03:48 2005 --- nl_NL.aff Thu Dec 29 19:42:56 2005
*************** ***************
*** 3,6 **** *** 3,6 ****
--- 3,30 ---- --- 3,31 ----
+ FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ + FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
+ LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ + LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
@ -13,9 +13,10 @@
+ +
+ MIDWORD '- + MIDWORD '-
+ +
+ KEP = + KEEPCASE =
+ RAR ? + RARE ?
+ BAD ! + BAD !
+ SLASH ,
+ +
NOSPLITSUGS NOSPLITSUGS
@ -53,7 +54,7 @@
! SFX J 0 je [aeiou][bcdfgkpt] ! SFX J 0 je [aeiou][bcdfgkpt]
! SFX J 0 jes [aeiou][bcdfgkpt] ! SFX J 0 jes [aeiou][bcdfgkpt]
--- 57,76 ---- --- 58,77 ----
SFX J N 18 SFX J N 18
! SFX J 0 tje [aeiou][aeiou] ! SFX J 0 tje [aeiou][aeiou]
! SFX J 0 tjes [aeiou][aeiou] ! SFX J 0 tjes [aeiou][aeiou]
@ -79,7 +80,7 @@
REP ubi ibu REP ubi ibu
! REP croc krok ! REP croc krok
REP ten than REP ten than
--- 277,279 ---- --- 278,280 ----
REP ubi ibu REP ubi ibu
! REP croc krok ! REP croc krok
REP ten than REP ten than
@ -88,7 +89,7 @@
REP capucino cappuccino REP capucino cappuccino
! REP celcius Celsius ! REP celcius Celsius
REP kado cadeau REP kado cadeau
--- 312,314 ---- --- 313,315 ----
REP capucino cappuccino REP capucino cappuccino
! REP celcius Celsius ! REP celcius Celsius
REP kado cadeau REP kado cadeau
@ -101,7 +102,7 @@
REP kommittee comité REP kommittee comité
! REP kwis quiz ! REP kwis quiz
REP kwissen quizzen REP kwissen quizzen
--- 318,324 ---- --- 319,325 ----
REP committee comité REP committee comité
! REP komitee comité ! REP komitee comité
! REP komittee comité ! REP komittee comité
@ -114,7 +115,7 @@
REP copy kopij REP copy kopij
! REP pitoresque pittoreske ! REP pitoresque pittoreske
REP reikweite reikwijdte REP reikweite reikwijdte
--- 326,328 ---- --- 327,329 ----
REP copy kopij REP copy kopij
! REP pitoresque pittoreske ! REP pitoresque pittoreske
REP reikweite reikwijdte REP reikweite reikwijdte
@ -126,7 +127,7 @@
! REP kontekst context ! REP kontekst context
! REP korrekt correct ! REP korrekt correct
REP kritikus criticus REP kritikus criticus
--- 338,343 ---- --- 339,344 ----
REP klup club REP klup club
! REP wiskid whizzkid ! REP wiskid whizzkid
! REP kontakt contact ! REP kontakt contact
@ -135,13 +136,13 @@
REP kritikus criticus REP kritikus criticus
*************** ***************
*** 333 **** *** 333 ****
--- 357,360 ---- --- 358,361 ----
REP aflassen afgelasten REP aflassen afgelasten
+ REP svp s.v.p. + REP svp s.v.p.
+ REP zoz z.o.z. + REP zoz z.o.z.
+ +
*** nl_NL.orig.dic Sun Jul 3 18:24:07 2005 *** nl_NL.orig.dic Sun Jul 3 18:24:07 2005
--- nl_NL.dic Sat Dec 10 20:46:29 2005 --- nl_NL.dic Tue Jan 17 20:39:49 2006
*************** ***************
*** 1,3 **** *** 1,3 ****
119937 119937
@ -187,8 +188,14 @@
! achterwand/N ! achterwand/N
achterweg/NE achterweg/NE
*************** ***************
*** 4896,4897 ****
--- 4900,4902 ----
aidsepidemie
+ aidspreventieprogramma
aidspreventieprogramma's
***************
*** 7485,7486 **** *** 7485,7486 ****
--- 7489,7498 ---- --- 7490,7499 ----
avond/SN avond/SN
+ 's avonds/= + 's avonds/=
+ 's middags/= + 's middags/=
@ -201,7 +208,7 @@
avondappèl/S avondappèl/S
*************** ***************
*** 20681,20682 **** *** 20681,20682 ****
--- 20693,20695 ---- --- 20694,20696 ----
cytostatica cytostatica
+ d.m.v. + d.m.v.
daad/P daad/P
@ -210,19 +217,19 @@
hartelozer hartelozer
! hartelust ! hartelust
harten/S harten/S
--- 41822,41824 ---- --- 41823,41825 ----
hartelozer hartelozer
! hartenlust ! hartenlust
harten/S harten/S
*************** ***************
*** 46300,46301 **** *** 46300,46301 ****
--- 46313,46315 ---- --- 46314,46316 ----
informaticus informaticus
+ informatie/S + informatie/S
informatie-uitwisseling informatie-uitwisseling
*************** ***************
*** 60206,60208 **** *** 60206,60208 ****
--- 60220,60227 ---- --- 60221,60228 ----
löss löss
+ m.a.w. + m.a.w.
+ m.b.t. + m.b.t.
@ -233,7 +240,7 @@
maag maag
*************** ***************
*** 77996,77997 **** *** 77996,77997 ****
--- 78015,78017 ---- --- 78016,78018 ----
pluisje pluisje
+ pluisjes + pluisjes
pluist/UF pluist/UF
@ -242,39 +249,39 @@
programmablad programmablad
! programmaboekje ! programmaboekje
programmacode programmacode
--- 80330,80332 ---- --- 80331,80333 ----
programmablad programmablad
! programmaboekje/S ! programmaboekje/S
programmacode programmacode
*************** ***************
*** 97474,97475 **** *** 97474,97475 ****
--- 97494,97497 ---- --- 97495,97498 ----
suïciderisico/X suïciderisico/X
+ s.v.p. + s.v.p.
+ z.o.z. + z.o.z.
swagger/S swagger/S
*************** ***************
*** 101428,101429 **** *** 101428,101429 ****
--- 101450,101453 ---- --- 101451,101454 ----
toezichthouder/S toezichthouder/S
+ toezichthoudersaansprakelijkheidsverzekering + toezichthoudersaansprakelijkheidsverzekering
+ toezichthoudersaansprakelijkheidsverzekeringen + toezichthoudersaansprakelijkheidsverzekeringen
toezie/N toezie/N
*************** ***************
*** 103707,103708 **** *** 103707,103708 ****
--- 103731,103733 ---- --- 103732,103734 ----
tête-à-tête/S tête-à-tête/S
+ u + u
uchtend/N uchtend/N
*************** ***************
*** 110847,110848 **** *** 110847,110848 ****
--- 110872,110874 ---- --- 110873,110875 ----
voorjaarscollectie/S voorjaarscollectie/S
+ voorjaarsconferentie/S + voorjaarsconferentie/S
voorjaarsmoeheid voorjaarsmoeheid
*************** ***************
*** 119938 **** *** 119938 ****
--- 119964,173136 ---- --- 119965,173166 ----
überhaupt überhaupt
+ Christiaan/X + Christiaan/X
+ Fred/X + Fred/X
@ -285,6 +292,7 @@
+ René/X + René/X
+ Renée/X + Renée/X
+ Walter/X + Walter/X
+ Verhagen/X
+ # toevoegingen uit de Woordenlijst van 30 mei 1996 + # toevoegingen uit de Woordenlijst van 30 mei 1996
+ a capella + a capella
+ a fortiori + a fortiori
@ -445,25 +453,50 @@
+ wishful thinking + wishful thinking
+ à gogo + à gogo
+ à propos + à propos
+ a.s.
+ evt. + evt.
+ enz. + enz.
+ t,m
+ bijv. + bijv.
+ t.n.v. + t.n.v.
+ m.b.v. + m.b.v.
+ et al. + et al.
+ Abraham
+ Anita
+ Boudewijn
+ Bram
+ Edwin
+ Erwin
+ Gerard + Gerard
+ Gert
+ Google + Google
+ Jos
+ Laurens
+ Leon
+ Luc + Luc
+ Luuk + Luuk
+ Gert
+ Marion + Marion
+ Jos + Paul
+ Boudewijn + Nikon
+ Abraham + Pentax
+ Minolta
+ Mariëlle
+ Jeroen
+ Wytze
+ Océ
+ Philips
+ Shell
+ KPN
+ FNV
+ CNV
+ NLUUG
+ ICCF
+ aidsvoorlichting
+ # Woorden uit de Woordenlijst Nederlandse Taal - Officiële Spelling 2005 + # Woorden uit de Woordenlijst Nederlandse Taal - Officiële Spelling 2005
+ # TODO: werkwoord vervoegingen + # TODO: werkwoord vervoegingen
+ 's anderendaags + 's anderendaags
+ 't is dief en diefjesmaat + 't is dief en diefjesmaat
+ 11 julifeest
+ 11 julifeesten + 11 julifeesten
+ 11 juliviering + 11 juliviering
+ 11 julivieringen + 11 julivieringen
@ -2432,6 +2465,8 @@
+ a-priorische + a-priorische
+ a.m. + a.m.
+ a.u.b. + a.u.b.
+ blz.
+ e.d.
+ aagje + aagje
+ aagjes + aagjes
+ aaibaar + aaibaar
@ -53448,3 +53483,4 @@
+ über-ich + über-ich
+ übermensch + übermensch
+ übermenschen + übermenschen
+

View File

@ -1806,10 +1806,11 @@ buflist_getfile(n, lnum, options, forceit)
if (buf == curbuf) if (buf == curbuf)
return OK; return OK;
#ifdef FEAT_CMDWIN if (editing_cmdline())
if (cmdwin_type != 0) {
editing_cmdline_msg();
return FAIL; return FAIL;
#endif }
/* altfpos may be changed by getfile(), get it now */ /* altfpos may be changed by getfile(), get it now */
if (lnum == 0) if (lnum == 0)

View File

@ -2026,7 +2026,17 @@ do_one_cmd(cmdlinep, sourcing,
} }
else if (ea.addr_count != 0) else if (ea.addr_count != 0)
{ {
if (ea.line2 < 0 || ea.line2 > curbuf->b_ml.ml_line_count) if (ea.line2 > curbuf->b_ml.ml_line_count)
{
/* With '-' in 'cpoptions' a line number past the file is an
* error, otherwise put it at the end of the file. */
if (vim_strchr(p_cpo, CPO_MINUS) != NULL)
ea.line2 = -1;
else
ea.line2 = curbuf->b_ml.ml_line_count;
}
if (ea.line2 < 0)
errormsg = (char_u *)_(e_invrange); errormsg = (char_u *)_(e_invrange);
else else
{ {
@ -2126,18 +2136,22 @@ do_one_cmd(cmdlinep, sourcing,
errormsg = (char_u *)_(e_modifiable); errormsg = (char_u *)_(e_modifiable);
goto doend; goto doend;
} }
#ifdef FEAT_CMDWIN
if (cmdwin_type != 0 && !(ea.argt & CMDWIN) if (editing_cmdline() && !(ea.argt & CMDWIN)
# ifdef FEAT_USR_CMDS # ifdef FEAT_USR_CMDS
&& !USER_CMDIDX(ea.cmdidx) && !USER_CMDIDX(ea.cmdidx)
# endif # endif
) )
{ {
/* Command not allowed in cmdline window. */ /* Command not allowed when editing the command line. */
#ifdef FEAT_CMDWIN
if (cmdwin_type != 0)
errormsg = (char_u *)_(e_cmdwin); errormsg = (char_u *)_(e_cmdwin);
else
#endif
errormsg = (char_u *)_(e_secure);
goto doend; goto doend;
} }
#endif
if (!ni && !(ea.argt & RANGE) && ea.addr_count > 0) if (!ni && !(ea.argt & RANGE) && ea.addr_count > 0)
{ {
@ -2977,12 +2991,9 @@ set_one_cmd_context(xp, buff)
int forceit = FALSE; int forceit = FALSE;
int usefilter = FALSE; /* filter instead of file name */ int usefilter = FALSE; /* filter instead of file name */
ExpandInit(xp);
xp->xp_pattern = buff; xp->xp_pattern = buff;
xp->xp_context = EXPAND_COMMANDS; /* Default until we get past command */ xp->xp_context = EXPAND_COMMANDS; /* Default until we get past command */
xp->xp_backslash = XP_BS_NONE;
#if defined(FEAT_USR_CMDS) && defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL)
xp->xp_arg = NULL;
#endif
ea.argt = 0; ea.argt = 0;
/* /*
@ -3254,6 +3265,11 @@ set_one_cmd_context(xp, buff)
if (bow != NULL && in_quote) if (bow != NULL && in_quote)
xp->xp_pattern = bow; xp->xp_pattern = bow;
xp->xp_context = EXPAND_FILES; xp->xp_context = EXPAND_FILES;
#ifndef BACKSLASH_IN_FILENAME
/* For a shell command more chars need to be escaped. */
if (usefilter || ea.cmdidx == CMD_bang)
xp->xp_shell = TRUE;
#endif
/* Check for environment variable */ /* Check for environment variable */
if (*xp->xp_pattern == '$' if (*xp->xp_pattern == '$'
@ -4189,16 +4205,16 @@ expand_filename(eap, cmdlinep, errormsgp)
/* For a shell command a '!' must be escaped. */ /* For a shell command a '!' must be escaped. */
if ((eap->usefilter || eap->cmdidx == CMD_bang) if ((eap->usefilter || eap->cmdidx == CMD_bang)
&& vim_strpbrk(repl, (char_u *)"!&;()") != NULL) && vim_strpbrk(repl, (char_u *)"!&;()<>") != NULL)
{ {
char_u *l; char_u *l;
l = vim_strsave_escaped(repl, (char_u *)"!&;()"); l = vim_strsave_escaped(repl, (char_u *)"!&;()<>");
if (l != NULL) if (l != NULL)
{ {
vim_free(repl); vim_free(repl);
repl = l; repl = l;
/* For a sh-like shell escape it another time. */ /* For a sh-like shell escape "!" another time. */
if (strstr((char *)p_sh, "sh") != NULL) if (strstr((char *)p_sh, "sh") != NULL)
{ {
l = vim_strsave_escaped(repl, (char_u *)"!"); l = vim_strsave_escaped(repl, (char_u *)"!");
@ -6017,6 +6033,12 @@ ex_quit(eap)
return; return;
} }
#endif #endif
/* Don't quit while editing the command line. */
if (editing_cmdline())
{
editing_cmdline_msg();
return;
}
#ifdef FEAT_NETBEANS_INTG #ifdef FEAT_NETBEANS_INTG
netbeansForcedQuit = eap->forceit; netbeansForcedQuit = eap->forceit;
@ -6079,6 +6101,14 @@ ex_quit_all(eap)
return; return;
} }
# endif # endif
/* Don't quit while editing the command line. */
if (editing_cmdline())
{
editing_cmdline_msg();
return;
}
exiting = TRUE; exiting = TRUE;
if (eap->forceit || !check_changed_any(FALSE)) if (eap->forceit || !check_changed_any(FALSE))
getout(0); getout(0);
@ -6098,6 +6128,7 @@ ex_close(eap)
cmdwin_result = K_IGNORE; cmdwin_result = K_IGNORE;
else else
# endif # endif
if (!editing_cmdline())
ex_win_close(eap, curwin); ex_win_close(eap, curwin);
} }
@ -6257,6 +6288,12 @@ ex_exit(eap)
return; return;
} }
#endif #endif
/* Don't quit while editing the command line. */
if (editing_cmdline())
{
editing_cmdline_msg();
return;
}
/* /*
* if more files or windows we won't exit * if more files or windows we won't exit
@ -6369,10 +6406,9 @@ handle_drop(filec, filev, split)
exarg_T ea; exarg_T ea;
int save_msg_scroll = msg_scroll; int save_msg_scroll = msg_scroll;
# ifdef FEAT_CMDWIN /* Postpone this while editing the command line. */
if (cmdwin_type != 0) if (editing_cmdline())
return; return;
# endif
/* Check whether the current buffer is changed. If so, we will need /* Check whether the current buffer is changed. If so, we will need
* to split the current window or data could be lost. * to split the current window or data could be lost.

View File

@ -788,15 +788,14 @@ getcount:
clearopbeep(oap); clearopbeep(oap);
goto normal_end; goto normal_end;
} }
#ifdef FEAT_CMDWIN
if (cmdwin_type != 0 && (nv_cmds[idx].cmd_flags & NV_NCW)) if (editing_cmdline() && (nv_cmds[idx].cmd_flags & NV_NCW))
{ {
/* This command is not allowed in the cmdline window: beep. */ /* This command is not allowed wile editing a ccmdline: beep. */
clearopbeep(oap); clearopbeep(oap);
EMSG(_(e_cmdwin)); editing_cmdline_msg();
goto normal_end; goto normal_end;
} }
#endif
#ifdef FEAT_VISUAL #ifdef FEAT_VISUAL
/* /*
@ -3640,6 +3639,7 @@ add_to_showcmd(c)
K_RIGHTMOUSE, K_RIGHTDRAG, K_RIGHTRELEASE, K_RIGHTMOUSE, K_RIGHTDRAG, K_RIGHTRELEASE,
K_MOUSEDOWN, K_MOUSEUP, K_MOUSEDOWN, K_MOUSEUP,
K_X1MOUSE, K_X1DRAG, K_X1RELEASE, K_X2MOUSE, K_X2DRAG, K_X2RELEASE, K_X1MOUSE, K_X1DRAG, K_X1RELEASE, K_X2MOUSE, K_X2DRAG, K_X2RELEASE,
K_CURSORHOLD,
0 0
}; };
#endif #endif
@ -5741,13 +5741,12 @@ nv_gotofile(cap)
{ {
char_u *ptr; char_u *ptr;
#ifdef FEAT_CMDWIN if (editing_cmdline())
if (cmdwin_type != 0)
{ {
clearopbeep(cap->oap); clearopbeep(cap->oap);
editing_cmdline_msg();
return; return;
} }
#endif
ptr = grab_file_name(cap->count1); ptr = grab_file_name(cap->count1);
@ -7802,13 +7801,13 @@ nv_g_cmd(cap)
/* "gQ": improved Ex mode */ /* "gQ": improved Ex mode */
case 'Q': case 'Q':
#ifdef FEAT_CMDWIN if (editing_cmdline())
if (cmdwin_type != 0)
{ {
clearopbeep(cap->oap); clearopbeep(cap->oap);
editing_cmdline_msg();
break; break;
} }
#endif
if (!checkclearopq(oap)) if (!checkclearopq(oap))
do_exmode(TRUE); do_exmode(TRUE);
break; break;

View File

@ -4852,7 +4852,7 @@ mch_expandpath(gap, path, flags)
# define SEEK_END 2 # define SEEK_END 2
#endif #endif
#define SHELL_SPECIAL (char_u *)"\t \"&';<>[\\]|" #define SHELL_SPECIAL (char_u *)"\t \"&';<>\\|"
/* ARGSUSED */ /* ARGSUSED */
int int

View File

@ -1,6 +1,8 @@
/* ex_getln.c */ /* ex_getln.c */
char_u *getcmdline __ARGS((int firstc, long count, int indent)); char_u *getcmdline __ARGS((int firstc, long count, int indent));
char_u *getcmdline_prompt __ARGS((int firstc, char_u *prompt, int attr, int xp_context, char_u *xp_arg)); char_u *getcmdline_prompt __ARGS((int firstc, char_u *prompt, int attr, int xp_context, char_u *xp_arg));
int editing_cmdline __ARGS((void));
void editing_cmdline_msg __ARGS((void));
char_u *getexline __ARGS((int c, void *dummy, int indent)); char_u *getexline __ARGS((int c, void *dummy, int indent));
char_u *getexmodeline __ARGS((int promptc, void *dummy, int indent)); char_u *getexmodeline __ARGS((int promptc, void *dummy, int indent));
int cmdline_overstrike __ARGS((void)); int cmdline_overstrike __ARGS((void));

View File

@ -324,6 +324,7 @@
# else # else
# define PATH_ESC_CHARS ((char_u *)" \t*?[{`$\\%#'\"|") # define PATH_ESC_CHARS ((char_u *)" \t*?[{`$\\%#'\"|")
# endif # endif
# define SHELL_ESC_CHARS ((char_u *)" \t*?[{`$\\%#'\"|<>();&!")
#endif #endif
#define NUMBUFLEN 30 /* length of a buffer to store a number in ASCII */ #define NUMBUFLEN 30 /* length of a buffer to store a number in ASCII */

View File

@ -2717,13 +2717,13 @@ win_alloc_first()
win_goto(wp) win_goto(wp)
win_T *wp; win_T *wp;
{ {
#ifdef FEAT_CMDWIN if (editing_cmdline())
if (cmdwin_type != 0)
{ {
beep_flush(); beep_flush();
editing_cmdline_msg();
return; return;
} }
#endif
#ifdef FEAT_VISUAL #ifdef FEAT_VISUAL
if (wp->w_buffer != curbuf) if (wp->w_buffer != curbuf)
reset_VIsual_and_resel(); reset_VIsual_and_resel();