aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-05-13 15:29:49 -0400
committerMichael Reed <m.reed@mykolab.com>2015-05-13 15:29:49 -0400
commit5e60180a1ecd6dd41889f8dc90864a36bf0a4650 (patch)
treee4c221b80a416691c4387c2b53a439c2611633d8 /src/nvim/diff.c
parentaf4b0a76a757f44ea7fbfc8e1c863952adc6ac1e (diff)
downloadrneovim-5e60180a1ecd6dd41889f8dc90864a36bf0a4650.tar.gz
rneovim-5e60180a1ecd6dd41889f8dc90864a36bf0a4650.tar.bz2
rneovim-5e60180a1ecd6dd41889f8dc90864a36bf0a4650.zip
Remove char_u: ex_docmd:do_cmdline_cmd()
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index b21bc1f2f4..7c1a9de623 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -978,7 +978,7 @@ void ex_diffpatch(exarg_T *eap)
// Do filetype detection with the new name.
if (au_has_group((char_u *)"filetypedetect")) {
- do_cmdline_cmd((char_u *)":doau filetypedetect BufRead");
+ do_cmdline_cmd(":doau filetypedetect BufRead");
}
}
}
@@ -1087,7 +1087,7 @@ void diff_win_options(win_T *wp, int addbuf)
// make sure topline is not halfway through a fold
changed_window_setting_win(wp);
if (vim_strchr(p_sbo, 'h') == NULL) {
- do_cmdline_cmd((char_u *)"set sbo+=hor");
+ do_cmdline_cmd("set sbo+=hor");
}
// Saved the current values, to be restored in ex_diffoff().
@@ -1173,7 +1173,7 @@ void ex_diffoff(exarg_T *eap)
// Remove "hor" from from 'scrollopt' if there are no diff windows left.
if (!diffwin && (vim_strchr(p_sbo, 'h') != NULL)) {
- do_cmdline_cmd((char_u *)"set sbo-=hor");
+ do_cmdline_cmd("set sbo-=hor");
}
}