mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 20:48:32 +00:00
Remove POSIX 'cpoptions': '.'
This commit is contained in:
@@ -1952,11 +1952,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'\' included: "/[ \-]" finds <Space>, '\' and '-'
|
'\' included: "/[ \-]" finds <Space>, '\' and '-'
|
||||||
'\' excluded: "/[ \-]" finds <Space> and '-'
|
'\' excluded: "/[ \-]" finds <Space> and '-'
|
||||||
Also see |cpo-l|.
|
Also see |cpo-l|.
|
||||||
*cpo-.*
|
|
||||||
. The ":chdir" and ":cd" commands fail if the current
|
|
||||||
buffer is modified, unless ! is used. Vim doesn't
|
|
||||||
need this, since it remembers the full path of an
|
|
||||||
opened file.
|
|
||||||
|
|
||||||
*'cryptmethod'* *'cm'*
|
*'cryptmethod'* *'cm'*
|
||||||
'cryptmethod' Removed. |vim-differences| {Nvim}
|
'cryptmethod' Removed. |vim-differences| {Nvim}
|
||||||
|
@@ -6834,12 +6834,6 @@ void ex_cd(exarg_T *eap)
|
|||||||
{
|
{
|
||||||
if (allbuf_locked())
|
if (allbuf_locked())
|
||||||
return;
|
return;
|
||||||
if (vim_strchr(p_cpo, CPO_CHDIR) != NULL && curbufIsChanged()
|
|
||||||
&& !eap->forceit) {
|
|
||||||
EMSG(_(
|
|
||||||
"E747: Cannot change directory, buffer is modified (add ! to override)"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ":cd -": Change to previous directory */
|
/* ":cd -": Change to previous directory */
|
||||||
if (STRCMP(new_dir, "-") == 0) {
|
if (STRCMP(new_dir, "-") == 0) {
|
||||||
|
@@ -130,14 +130,13 @@
|
|||||||
#define CPO_REGAPPEND '>' /* insert NL when appending to a register */
|
#define CPO_REGAPPEND '>' /* insert NL when appending to a register */
|
||||||
/* POSIX flags */
|
/* POSIX flags */
|
||||||
#define CPO_BACKSL '\\' /* \ is not special in [] */
|
#define CPO_BACKSL '\\' /* \ is not special in [] */
|
||||||
#define CPO_CHDIR '.' /* don't chdir if buffer is modified */
|
|
||||||
#define CPO_SCOLON ';' /* using "," and ";" will skip over char if
|
#define CPO_SCOLON ';' /* using "," and ";" will skip over char if
|
||||||
* cursor would not move */
|
* cursor would not move */
|
||||||
/* default values for Vim, Vi and POSIX */
|
/* default values for Vim, Vi and POSIX */
|
||||||
#define CPO_VIM "aABceFs"
|
#define CPO_VIM "aABceFs"
|
||||||
#define CPO_VI "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>;"
|
#define CPO_VI "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>;"
|
||||||
#define CPO_ALL \
|
#define CPO_ALL \
|
||||||
"aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>\\.;"
|
"aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>\\;"
|
||||||
|
|
||||||
/* characters for p_ww option: */
|
/* characters for p_ww option: */
|
||||||
#define WW_ALL "bshl<>[],~"
|
#define WW_ALL "bshl<>[],~"
|
||||||
|
Reference in New Issue
Block a user