@@ -221,7 +221,7 @@ function popup.create(what, vim_options)
221
221
222
222
-- Create border
223
223
224
- local should_show_border = false
224
+ local should_show_border = nil
225
225
local border_options = {}
226
226
227
227
-- border List with numbers, defining the border thickness
@@ -231,7 +231,7 @@ function popup.create(what, vim_options)
231
231
if vim_options .border then
232
232
should_show_border = true
233
233
234
- if vim .tbl_isempty (vim_options .border ) then
234
+ if type ( vim_options . border ) == ' boolean ' or vim .tbl_isempty (vim_options .border ) then
235
235
border_options .border_thickness = Border ._default_thickness
236
236
elseif # vim_options .border == 4 then
237
237
border_options .border_thickness = {
@@ -246,9 +246,11 @@ function popup.create(what, vim_options)
246
246
vim .inspect (vim_options .border )
247
247
))
248
248
end
249
+ elseif vim_options .border == false then
250
+ should_show_border = false
249
251
end
250
252
251
- if should_show_border or vim_options .borderchars then
253
+ if ( should_show_border == nil or should_show_border ) and vim_options .borderchars then
252
254
should_show_border = true
253
255
254
256
-- borderchars List with characters, defining the character to use
@@ -295,7 +297,6 @@ function popup.create(what, vim_options)
295
297
-- title
296
298
if vim_options .title then
297
299
-- TODO: Check out how title works with weird border combos.
298
- should_show_border = true
299
300
border_options .title = vim_options .title
300
301
end
301
302
0 commit comments