Procházet zdrojové kódy

refactor: default shell (#3867)

opalmay před 2 roky
rodič
revize
de2bd1c3d8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lua/lvim/core/terminal.lua

+ 1 - 1
lua/lvim/core/terminal.lua

@@ -117,7 +117,7 @@ M.init = function()
     term_opts.size = term_opts.size or lvim.builtin.terminal.terminals_defaults[term_opts.direction .. "_size"]
     -- size is calculated dynamically as a percentage of the current buffer
     term_opts.size = get_dynamic_terminal_size(term_opts.direction, term_opts.size)
-    term_opts.cmd = term_opts.cmd or lvim.builtin.terminal.shell
+    term_opts.cmd = term_opts.cmd or lvim.builtin.terminal.shell or vim.o.shell
     -- desc is used for the keymap description
     term_opts.desc = term_opts.desc
     if term_opts.desc == nil then