Mercurial > vim
comparison src/popupmnu.c @ 17811:b5499bf22a97 v8.1.1902
patch 8.1.1902: cannot have an info popup without a border
Commit: https://github.com/vim/vim/commit/bd483b3f577ee1af7c8c8bf440f5d81613336975
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 21 15:13:41 2019 +0200
patch 8.1.1902: cannot have an info popup without a border
Problem: Cannot have an info popup without a border.
Solution: Add the "border" item to 'completepopup'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Aug 2019 15:15:03 +0200 |
parents | 59f8948b7590 |
children | 8ca20b0a3dc3 |
comparison
equal
deleted
inserted
replaced
17810:e67a904463f9 | 17811:b5499bf22a97 |
---|---|
743 { | 743 { |
744 # ifdef FEAT_TEXT_PROP | 744 # ifdef FEAT_TEXT_PROP |
745 if (use_popup) | 745 if (use_popup) |
746 { | 746 { |
747 int col = pum_col + pum_width + 1; | 747 int col = pum_col + pum_width + 1; |
748 int row = pum_row + pum_selected - pum_first + 1; | |
748 | 749 |
749 if (Columns - col < 20 && Columns - col < pum_col) | 750 if (Columns - col < 20 && Columns - col < pum_col) |
750 { | 751 { |
751 col = pum_col - 1; | 752 col = pum_col - 1; |
752 curwin->w_popup_pos = POPPOS_TOPRIGHT; | 753 curwin->w_popup_pos = POPPOS_TOPRIGHT; |
753 curwin->w_maxwidth = pum_col - 1; | 754 curwin->w_maxwidth = pum_col - 1; |
754 } | 755 } |
755 else | 756 else |
756 curwin->w_maxwidth = Columns - col + 1; | 757 curwin->w_maxwidth = Columns - col + 1; |
757 curwin->w_maxwidth -= popup_extra_width(curwin); | 758 curwin->w_maxwidth -= popup_extra_width(curwin); |
758 popup_set_wantpos_rowcol(curwin, | 759 row -= popup_top_extra(curwin); |
759 pum_row + pum_selected - pum_first, col); | 760 popup_set_wantpos_rowcol(curwin, row, col); |
760 } | 761 } |
761 # endif | 762 # endif |
762 if (!resized | 763 if (!resized |
763 && curbuf->b_nwindows == 1 | 764 && curbuf->b_nwindows == 1 |
764 && curbuf->b_fname == NULL | 765 && curbuf->b_fname == NULL |