From 5941f65e51cb009389ca62c72991105d7dffa9de Mon Sep 17 00:00:00 2001 From: Matthew Faltys Date: Wed, 13 Nov 2019 14:30:46 +0000 Subject: [PATCH] Fix vim permissions --- nethack-launcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nethack-launcher.go b/nethack-launcher.go index 25f943b..792afe2 100644 --- a/nethack-launcher.go +++ b/nethack-launcher.go @@ -202,12 +202,12 @@ func printUserScreen(redisClient *redis.Client, username string) string { hackRCLoc := fmt.Sprintf("%s/user/%s/.nethackrc", config.NethackLauncher.HackDir, username) exec.Command("stty", "-F", "/dev/tty", "echo", "-cbreak").Run() clearScreen() - nh := exec.Command("vim", hackRCLoc) + nh := exec.Command("vim", "-Z", hackRCLoc) nh.Stdout = os.Stdout nh.Stdin = os.Stdin nh.Stderr = os.Stderr nh.Run() - clearScree() + clearScreen() printUserScreen(redisClient, username) case "w": clearScreen()