diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-05 18:07:15 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-25 18:57:35 -0300 |
commit | b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b (patch) | |
tree | 1320080d0b40e1a360fba45f63d8f2a23ee16ced /src/nvim/diff.c | |
parent | 8b6b06c2e08ae3bfd5aaa5b920a521a03b42a2b3 (diff) | |
download | rneovim-b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b.tar.gz rneovim-b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b.tar.bz2 rneovim-b16c5bf5e6e2b7fd5f592ccec4f17bbf937e6d9b.zip |
buffer: Move b_p_ma(modifiable) checks into the MODIFIABLE macro
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 63b0eaf4f6..e50b096270 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -2078,7 +2078,7 @@ void ex_diffgetput(exarg_T *eap) if ((curtab->tp_diffbuf[idx_other] != curbuf) && (curtab->tp_diffbuf[idx_other] != NULL)) { if ((eap->cmdidx != CMD_diffput) - || curtab->tp_diffbuf[idx_other]->b_p_ma) { + || MODIFIABLE(curtab->tp_diffbuf[idx_other])) { break; } found_not_ma = TRUE; @@ -2098,7 +2098,8 @@ void ex_diffgetput(exarg_T *eap) for (i = idx_other + 1; i < DB_COUNT; ++i) { if ((curtab->tp_diffbuf[i] != curbuf) && (curtab->tp_diffbuf[i] != NULL) - && ((eap->cmdidx != CMD_diffput) || curtab->tp_diffbuf[i]->b_p_ma)) { + && ((eap->cmdidx != CMD_diffput) + || MODIFIABLE(curtab->tp_diffbuf[i]))) { EMSG(_("E101: More than two buffers in diff mode, don't know " "which one to use")); return; |