mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-14 02:50:30 +09:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user