mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-21 16:30:24 +00:00
parent
299416062f
commit
c7334eb3b7
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ func (b *Buffer) SaveAsWithSudo(filename string) error {
|
|||
screen = nil
|
||||
|
||||
// Set up everything for the command
|
||||
cmd := exec.Command(b.Settings["sucmd"].(string), "tee", filename)
|
||||
cmd := exec.Command(globalSettings["sucmd"].(string), "tee", filename)
|
||||
cmd.Stdin = bytes.NewBufferString(b.SaveString(b.Settings["fileformat"] == "dos"))
|
||||
|
||||
// This is a trap for Ctrl-C so that it doesn't kill micro
|
||||
|
|
|
|||
Loading…
Reference in a new issue