diff options
| author | Marco Hinz <mh.codebro@gmail.com> | 2017-01-09 20:49:47 +0100 | 
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2017-02-04 17:55:46 -0500 | 
| commit | b0cf071d437699b9b89e3735b3df41914f302eb1 (patch) | |
| tree | ec6f0ce799cc1ab9b0c195896f67b3d8f82ece7b /src/nvim/buffer.c | |
| parent | d3f97232e8aa94ccb463aadd0c698fd506dfe9ca (diff) | |
| download | rneovim-b0cf071d437699b9b89e3735b3df41914f302eb1.tar.gz rneovim-b0cf071d437699b9b89e3735b3df41914f302eb1.tar.bz2 rneovim-b0cf071d437699b9b89e3735b3df41914f302eb1.zip | |
Fix clint issues
Diffstat (limited to 'src/nvim/buffer.c')
| -rw-r--r-- | src/nvim/buffer.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 24aa4cdaac..7c702fd33e 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -274,7 +274,8 @@ open_buffer (  ///  /// @param bufref Reference to be used for the buffer.  /// @param buf    The buffer to reference. -void set_bufref(bufref_T *bufref, buf_T *buf) { +void set_bufref(bufref_T *bufref, buf_T *buf) +{    bufref->br_buf = buf;    bufref->br_buf_free_count = buf_free_count;  } @@ -284,7 +285,8 @@ void set_bufref(bufref_T *bufref, buf_T *buf) {  /// Only goes through the buffer list if buf_free_count changed.  ///  /// @param bufref Buffer reference to check for. -bool bufref_valid(bufref_T *bufref) { +bool bufref_valid(bufref_T *bufref) +{    return bufref->br_buf_free_count == buf_free_count      ? true      : buf_valid(bufref->br_buf); | 
