Mercurial > vim
comparison src/evalwindow.c @ 20879:0ab45b558621 v8.2.0991
patch 8.2.0991: cannot get window type for autocmd and preview window
Commit: https://github.com/vim/vim/commit/0fe937fd8616fcd24b1b1ef2ab9f1657615dd22c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 16 22:42:04 2020 +0200
patch 8.2.0991: cannot get window type for autocmd and preview window
Problem: Cannot get window type for autocmd and preview window.
Solution: Add types to win_gettype(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6277)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 16 Jun 2020 22:45:04 +0200 |
parents | 3ff714d765ba |
children | 27401f09fe9b |
comparison
equal
deleted
inserted
replaced
20878:393f830e4f16 | 20879:0ab45b558621 |
---|---|
856 { | 856 { |
857 rettv->vval.v_string = vim_strsave((char_u *)"unknown"); | 857 rettv->vval.v_string = vim_strsave((char_u *)"unknown"); |
858 return; | 858 return; |
859 } | 859 } |
860 } | 860 } |
861 if (wp == aucmd_win) | |
862 rettv->vval.v_string = vim_strsave((char_u *)"aucmdwin"); | |
863 #if defined(FEAT_QUICKFIX) | |
864 else if (wp->w_p_pvw) | |
865 rettv->vval.v_string = vim_strsave((char_u *)"preview"); | |
866 #endif | |
861 #ifdef FEAT_PROP_POPUP | 867 #ifdef FEAT_PROP_POPUP |
862 if (WIN_IS_POPUP(wp)) | 868 else if (WIN_IS_POPUP(wp)) |
863 rettv->vval.v_string = vim_strsave((char_u *)"popup"); | 869 rettv->vval.v_string = vim_strsave((char_u *)"popup"); |
864 else | |
865 #endif | 870 #endif |
866 #ifdef FEAT_CMDWIN | 871 #ifdef FEAT_CMDWIN |
867 if (wp == curwin && cmdwin_type != 0) | 872 else if (wp == curwin && cmdwin_type != 0) |
868 rettv->vval.v_string = vim_strsave((char_u *)"command"); | 873 rettv->vval.v_string = vim_strsave((char_u *)"command"); |
869 #endif | 874 #endif |
870 } | 875 } |
871 | 876 |
872 /* | 877 /* |