From 324f55e80fc5bf49dd78aed6a65035128a02543f Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 14 Sep 2018 09:31:46 -0400 Subject: [PATCH] fixed a bug in setting title of unnamed buffer --- tide.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tide.c b/tide.c index d765281..3762814 100644 --- a/tide.c +++ b/tide.c @@ -273,8 +273,9 @@ static void put(char* arg) { buf_setpath(buf, path); free(path); } - win_title(buf->path); - win_prop_set("TIDE_FILE", "file", buf->path); + char* path = (buf->path ? buf->path : "*scratch*"); + win_title(path); + win_prop_set("TIDE_FILE", "file", path); } static void get(char* arg) { -- 2.49.0