]> granicus.if.org Git - vim/commitdiff
patch 8.1.1779: not showing the popup window right border is confusing v8.1.1779
authorBram Moolenaar <Bram@vim.org>
Tue, 30 Jul 2019 19:19:26 +0000 (21:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 30 Jul 2019 19:19:26 +0000 (21:19 +0200)
Problem:    Not showing the popup window right border is confusing.
Solution:   Also show the border when 'wrap' is off. (closes #4747)

src/popupwin.c
src/testdir/dumps/Test_popupwin_20.dump
src/testdir/dumps/Test_popupwin_21.dump
src/version.c

index 4113b55679edb868bde52acd771bae87fa40c0ce..856409798ad15315b57fe0be0cfff76bd2fde21a 100644 (file)
@@ -1076,7 +1076,9 @@ popup_adjust_position(win_T *wp)
        }
     }
 
-    if (wp->w_p_wrap)
+    if (wp->w_p_wrap || (!wp->w_popup_fixed
+                           && (wp->w_popup_pos == POPPOS_TOPLEFT
+                               || wp->w_popup_pos == POPPOS_BOTLEFT)))
     {
        int want_col = 0;
 
index 39ae7379b3e65b56815ccdb9274d3969dc097d76..affe148cca0f602af4b2d63909e81bb69c1cf67b 100644 (file)
@@ -8,7 +8,7 @@
 |8| @20| +0#0000001#ffd7ff255@14| +0#0000000#ffffff0@12||+0#0000001#ffd7ff255| @2|w|r|a|p@1|e|d| |l|o|n|g|e|r| |t|e| @2||
 |9+0#0000000#ffffff0| @20| +0#0000001#ffd7ff255@14| +0#0000000#ffffff0@12||+0#0000001#ffd7ff255| @2|x|t| @17||
 |1+0#0000000#ffffff0|0| @72
-|1@1| @50||+0#0000001#ffd7ff255| @2|r|i|g|h|t| |a|l|i|g|n|e|d| |t|e|x|t
+|1@1| @46||+0#0000001#ffd7ff255| @2|r|i|g|h|t| |a|l|i|g|n|e|d| |t|e|x|t| @2||
 |1+0#0000000#ffffff0|2| @72
 |1|3| @72
 |1|4| @72
index 56d8d14b169cb9cbef29bdbbe6184ea82bc8d255..7c2718dde7d62a59b13daafa23e3a4ec31c8c9da 100644 (file)
@@ -8,7 +8,7 @@
 |8| @20| +0#0000001#ffd7ff255@14| +0#0000000#ffffff0@12|║+0#0000001#ffd7ff255| @2|w|r|a|p@1|e|d| |l|o|n|g|e|r| |t|e| @2|║
 |9+0#0000000#ffffff0| @20| +0#0000001#ffd7ff255@14| +0#0000000#ffffff0@12|║+0#0000001#ffd7ff255| @2|x|t| @17|║
 |1+0#0000000#ffffff0|0| @72
-|1@1| @50|║+0#0000001#ffd7ff255| @2|r|i|g|h|t| |a|l|i|g|n|e|d| |t|e|x|t
+|1@1| @46|║+0#0000001#ffd7ff255| @2|r|i|g|h|t| |a|l|i|g|n|e|d| |t|e|x|t| @2|║
 |1+0#0000000#ffffff0|2| @72
 |1|3| @72
 |1|4| @72
index 4ae1905eef06031a20d942e6d4244a7313549904..463456b4c0c03d57ba401a557db3fdd2537dd73d 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1779,
 /**/
     1778,
 /**/