diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-17 16:03:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-17 16:03:57 +0200 |
commit | 105bc355a6713b5c09b52776bf8f92a15a81f49c (patch) | |
tree | 5b87ec43fc4b9c4c59cfe40a8167f117274a0b6d /src/proto/window.pro | |
parent | 55b8ad3dabc16451f0ae59a7ae8ab9edb67f84e6 (diff) | |
download | vim-git-105bc355a6713b5c09b52776bf8f92a15a81f49c.tar.gz |
updated for version 7.3.963v7.3.963
Problem: Setting curbuf without curwin causes trouble.
Solution: Add switch_buffer() and restore_buffer(). Block autocommands to
avoid trouble.
Diffstat (limited to 'src/proto/window.pro')
-rw-r--r-- | src/proto/window.pro | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/proto/window.pro b/src/proto/window.pro index a7fcf0c86..83116c9e2 100644 --- a/src/proto/window.pro +++ b/src/proto/window.pro @@ -32,6 +32,7 @@ void goto_tabpage_win __ARGS((tabpage_T *tp, win_T *wp)); void tabpage_move __ARGS((int nr)); void win_goto __ARGS((win_T *wp)); win_T *win_find_nr __ARGS((int winnr)); +tabpage_T *win_find_tabpage __ARGS((win_T *win)); void win_enter __ARGS((win_T *wp, int undo_sync)); win_T *buf_jump_open_win __ARGS((buf_T *buf)); win_T *buf_jump_open_tab __ARGS((buf_T *buf)); @@ -69,6 +70,10 @@ int only_one_window __ARGS((void)); void check_lnums __ARGS((int do_curwin)); void make_snapshot __ARGS((int idx)); void restore_snapshot __ARGS((int idx, int close_curwin)); +int switch_win __ARGS((win_T **save_curwin, tabpage_T **save_curtab, win_T *win, tabpage_T *tp)); +void restore_win __ARGS((win_T *save_curwin, tabpage_T *save_curtab)); +void switch_buffer __ARGS((buf_T **save_curbuf, buf_T *buf)); +void restore_buffer __ARGS((buf_T *save_curbuf)); int win_hasvertsplit __ARGS((void)); int match_add __ARGS((win_T *wp, char_u *grp, char_u *pat, int prio, int id)); int match_delete __ARGS((win_T *wp, int id, int perr)); |