diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-16 08:34:48 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-16 09:38:14 -0500 |
commit | 18d86283b04c42f331da23b61e09ae0039825143 (patch) | |
tree | 2565b7557f0baba5b63cd5dba56c3a7d3efdc872 /src/nvim/option.c | |
parent | 7955c05accaac452c1350d08af62d9d75387f24f (diff) | |
download | rneovim-18d86283b04c42f331da23b61e09ae0039825143.tar.gz rneovim-18d86283b04c42f331da23b61e09ae0039825143.tar.bz2 rneovim-18d86283b04c42f331da23b61e09ae0039825143.zip |
vim-patch:8.0.1660: the terminal API "drop" command doesn't support options
Problem: The terminal API "drop" command doesn't support options.
Solution: Implement the options.
https://github.com/vim/vim/commit/333b80acf3a44e462456e6d5730e47ffa449c83d
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 100902897a..478c9a0ff8 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -7294,12 +7294,13 @@ int get_fileformat(buf_T *buf) /// argument. /// /// @param eap can be NULL! -int get_fileformat_force(buf_T *buf, exarg_T *eap) +int get_fileformat_force(const buf_T *buf, const exarg_T *eap) + FUNC_ATTR_NONNULL_ARG(1) { int c; if (eap != NULL && eap->force_ff != 0) { - c = eap->cmd[eap->force_ff]; + c = eap->force_ff; } else { if ((eap != NULL && eap->force_bin != 0) ? (eap->force_bin == FORCE_BIN) : buf->b_p_bin) { |