File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,15 +182,16 @@ function! s:switch_back(opts, Cmd)
182182endfunction
183183
184184function ! s: create_term_buf (opts)
185+ let l: shell = get (g: , ' nnn#shell' , &shell )
185186 if has (' nvim' )
186- call termopen ([g: nnn # shell , &shellcmdflag , a: opts .cmd], {
187+ call termopen ([l: shell , &shellcmdflag , a: opts .cmd], {
187188 \ ' env' : { ' NNN_SEL' : s: temp_file },
188189 \ ' on_exit' : a: opts .on_exit
189190 \ })
190191 startinsert
191192 return bufnr (' ' )
192193 else
193- return term_start ([g: nnn # shell , &shellcmdflag , a: opts .cmd], {
194+ return term_start ([l: shell , &shellcmdflag , a: opts .cmd], {
194195 \ ' curwin' : get (a: opts , ' curwin' , 1 ),
195196 \ ' hidden' : get (a: opts , ' hidden' , 0 ),
196197 \ ' env' : { ' NNN_SEL' : s: temp_file },
Original file line number Diff line number Diff line change @@ -25,10 +25,6 @@ if !exists('g:nnn#statusline')
2525 let g: nnn #statusline = 1
2626endif
2727
28- if ! exists (' g:nnn#shell' )
29- let g: nnn #shell = &shell
30- endif
31-
3228if ! exists (' g:nnn#session' )
3329 let g: nnn #session = " none"
3430endif
You can’t perform that action at this time.
0 commit comments