diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/popupmenu.c | 7 | ||||
-rw-r--r-- | src/unicode/Copyright.txt | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c index 74376c8b8a..3a3f966d10 100644 --- a/src/nvim/popupmenu.c +++ b/src/nvim/popupmenu.c @@ -264,12 +264,15 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, i pum_row = above_row; pum_height = pum_win_row - above_row; } + + pum_array = array; + // Set "pum_size" before returning so that pum_set_event_info() gets the correct size. + pum_size = size; + if (pum_external) { return; } - pum_array = array; - pum_size = size; pum_compute_size(); int max_width = pum_base_width; diff --git a/src/unicode/Copyright.txt b/src/unicode/Copyright.txt index bfae4154b6..9d281d674a 100644 --- a/src/unicode/Copyright.txt +++ b/src/unicode/Copyright.txt @@ -2,7 +2,7 @@ COPYRIGHT AND PERMISSION NOTICE Copyright © 1991-2015 Unicode, Inc. All rights reserved. Distributed under the Terms of Use in -http://www.unicode.org/copyright.html. +https://www.unicode.org/copyright.html. Permission is hereby granted, free of charge, to any person obtaining a copy of the Unicode data files and any associated documentation @@ -34,4 +34,4 @@ PERFORMANCE OF THE DATA FILES OR SOFTWARE. Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior -written authorization of the copyright holder.
\ No newline at end of file +written authorization of the copyright holder. |