aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-07-03 05:23:26 -0400
committerMichael Reed <m.reed@mykolab.com>2015-07-19 15:14:22 -0400
commit0661411bbaa547b9ddd9fde8ed40ca9cb0dcfcae (patch)
treed557d84cbc65bf8b9f9768d4bc31bcab3dd91289 /src
parent3931a36340b71f2c3b7ea65132176fda77fe36c4 (diff)
downloadrneovim-0661411bbaa547b9ddd9fde8ed40ca9cb0dcfcae.tar.gz
rneovim-0661411bbaa547b9ddd9fde8ed40ca9cb0dcfcae.tar.bz2
rneovim-0661411bbaa547b9ddd9fde8ed40ca9cb0dcfcae.zip
Remove POSIX 'cpoptions': '.'
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_docmd.c6
-rw-r--r--src/nvim/option_defs.h3
2 files changed, 1 insertions, 8 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 3b6e05fd8a..fc7e2c9b44 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -6834,12 +6834,6 @@ void ex_cd(exarg_T *eap)
{
if (allbuf_locked())
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 */
if (STRCMP(new_dir, "-") == 0) {
diff --git a/src/nvim/option_defs.h b/src/nvim/option_defs.h
index a8f26a7c3d..e73cc4c189 100644
--- a/src/nvim/option_defs.h
+++ b/src/nvim/option_defs.h
@@ -130,14 +130,13 @@
#define CPO_REGAPPEND '>' /* insert NL when appending to a register */
/* POSIX flags */
#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
* cursor would not move */
/* default values for Vim, Vi and POSIX */
#define CPO_VIM "aABceFs"
#define CPO_VI "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>;"
#define CPO_ALL \
- "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>\\.;"
+ "aAbBcCdDeEfFiIJkKlLmMnoOpPqrRsStuvWxXyZ$!%+<>\\;"
/* characters for p_ww option: */
#define WW_ALL "bshl<>[],~"