aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
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/nvim/ex_docmd.c
parent3931a36340b71f2c3b7ea65132176fda77fe36c4 (diff)
downloadrneovim-0661411bbaa547b9ddd9fde8ed40ca9cb0dcfcae.tar.gz
rneovim-0661411bbaa547b9ddd9fde8ed40ca9cb0dcfcae.tar.bz2
rneovim-0661411bbaa547b9ddd9fde8ed40ca9cb0dcfcae.zip
Remove POSIX 'cpoptions': '.'
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c6
1 files changed, 0 insertions, 6 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) {