Skip to content

Commit 4c47437

Browse files
committed
support border none
1 parent dde5911 commit 4c47437

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

autoload/nnn.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function! s:popup(opts, term_opts)
119119
let l:highlight = get(a:opts, 'highlight', l:default_hl)
120120

121121
if has('nvim')
122-
let l:borderchars = map(l:border ==# 'rounded'
122+
let l:borderchars = l:border ==# 'none' ? 'none' : map(l:border ==# 'rounded'
123123
\ ? ['', '' ,'', '', '', '', '', '' ]
124124
\ : ['', '' ,'', '', '', '', '', '' ],
125125
\ {_, val -> [v:val, l:highlight]})
@@ -146,7 +146,7 @@ function! s:popup(opts, term_opts)
146146
\ col: col,
147147
\ minwidth: width,
148148
\ minheight: height,
149-
\ border: [],
149+
\ border: l:border ==# 'none' ? [0, 0, 0, 0] : [],
150150
\ borderhighlight: [l:highlight],
151151
\ borderchars: l:borderchars,
152152
\ })

doc/nnn.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ g:nnn#layout *g:nnn#layout*
117117
" Options:
118118
" width, height, yoffset, xoffset : number
119119
" highlight : highlight group assign to the border
120-
" border : border style - 'rounded' / 'sharp'
120+
" border : border style - 'rounded' / 'sharp' / 'none'
121121
<
122122

123123
g:nnn#action *g:nnn#action*

0 commit comments

Comments
 (0)