mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
@@ -431,7 +431,7 @@ func (b *Buffer) SaveAsWithSudo(filename string) error {
|
|||||||
screen = nil
|
screen = nil
|
||||||
|
|
||||||
// Set up everything for the command
|
// 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"))
|
cmd.Stdin = bytes.NewBufferString(b.SaveString(b.Settings["fileformat"] == "dos"))
|
||||||
|
|
||||||
// This is a trap for Ctrl-C so that it doesn't kill micro
|
// This is a trap for Ctrl-C so that it doesn't kill micro
|
||||||
|
|||||||
Reference in New Issue
Block a user