diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-09 18:22:37 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 09:33:41 -0300 |
commit | 73dbb97f8e51c77bb553a8af645b728543462d26 (patch) | |
tree | 2c989a2c8f3ec4ce74e24f4faef7748f5c8ae2a9 /src/api/buffer.c | |
parent | 9dd1d2cd003d2567fcd47c8cb54603cc348dec01 (diff) | |
download | rneovim-73dbb97f8e51c77bb553a8af645b728543462d26.tar.gz rneovim-73dbb97f8e51c77bb553a8af645b728543462d26.tar.bz2 rneovim-73dbb97f8e51c77bb553a8af645b728543462d26.zip |
API: Implement window/tabpage switching functions
Also moved `find_buffer` to 'api/helpers.c' and removed unnecessary declaration
in 'window.h'
Diffstat (limited to 'src/api/buffer.c')
-rw-r--r-- | src/api/buffer.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/api/buffer.c b/src/api/buffer.c index 39c69f1ce7..d5b46943da 100644 --- a/src/api/buffer.c +++ b/src/api/buffer.c @@ -14,8 +14,6 @@ #include "../window.h" #include "undo.h" -static buf_T *find_buffer(Buffer buffer, Error *err); - // Find a window that contains "buf" and switch to it. // If there is no such window, use the current window and change "curbuf". // Caller must initialize save_curbuf to NULL. @@ -198,17 +196,6 @@ Position buffer_mark(Buffer buffer, String name, Error *err) abort(); } -static buf_T *find_buffer(Buffer buffer, Error *err) -{ - buf_T *buf = buflist_findnr(buffer); - - if (buf == NULL) { - set_api_error("Invalid buffer id", err); - } - - return buf; -} - static void switch_to_win_for_buf(buf_T *buf, win_T **save_curwinp, tabpage_T **save_curtabp, |