diff --git a/code/files.go b/code/files.go index b75f1636..b9af67c7 100644 --- a/code/files.go +++ b/code/files.go @@ -414,7 +414,7 @@ func (cv *Code) SaveAllOpenNodes() { if ond.Buffer == nil { continue } - if ond.Buffer.NotSaved { + if ond.Buffer.IsNotSaved() { ond.Buffer.Save() cv.RunPostCmdsFileNode(ond) } diff --git a/code/texteditors.go b/code/texteditors.go index 7750d5bb..ab6cea6d 100644 --- a/code/texteditors.go +++ b/code/texteditors.go @@ -245,7 +245,7 @@ func (cv *Code) UpdateTextButtons() { txnm := "" if tv.Buffer != nil { txnm = fsx.DirAndFile(string(tv.Buffer.Filename)) - if tv.Buffer.NotSaved { + if tv.Buffer.IsNotSaved() { txnm += " *" } else { txnm += " " diff --git a/code/views.go b/code/views.go index 0473f10e..754f018d 100644 --- a/code/views.go +++ b/code/views.go @@ -279,7 +279,7 @@ func (cv *Code) UpdateStatusText() { ch = tv.CursorPos.Ch if tv.Buffer != nil { fnm = cv.Files.RelativePathFrom(tv.Buffer.Filename) - if tv.Buffer.NotSaved { + if tv.Buffer.IsNotSaved() { fnm += "*" } if tv.Buffer.Info.Known != fileinfo.Unknown { diff --git a/go.mod b/go.mod index 9880fef1..66a25eff 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module cogentcore.org/cogent go 1.22 require ( - cogentcore.org/core v0.2.4-0.20240723213451-aa223368e253 + cogentcore.org/core v0.2.4-0.20240724045046-9f359945c830 github.com/aandrew-me/tgpt/v2 v2.7.2 github.com/alecthomas/chroma/v2 v2.13.0 github.com/bogdanfinn/fhttp v0.5.27 diff --git a/go.sum b/go.sum index 7bec208e..e55aa8cb 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -cogentcore.org/core v0.2.4-0.20240723213451-aa223368e253 h1:tcW5aSO8bdxnCFWfUlRtt+G7wQ7WJvD78z0QvpqLJDY= -cogentcore.org/core v0.2.4-0.20240723213451-aa223368e253/go.mod h1:Rs73REPCpU/Deh9HOrAwq5cbSSwLvtNEAZJZixSKpcs= +cogentcore.org/core v0.2.4-0.20240724045046-9f359945c830 h1:hgQXPNSswk9YUvgBkCukBgFf/thYzRtZUXZc8Px1Kr4= +cogentcore.org/core v0.2.4-0.20240724045046-9f359945c830/go.mod h1:Rs73REPCpU/Deh9HOrAwq5cbSSwLvtNEAZJZixSKpcs= github.com/Bios-Marcel/wastebasket v0.0.4-0.20240213135800-f26f1ae0a7c4 h1:6lx9xzJAhdjq0LvVfbITeC3IH9Fzvo1aBahyPu2FuG8= github.com/Bios-Marcel/wastebasket v0.0.4-0.20240213135800-f26f1ae0a7c4/go.mod h1:FChzXi1izqzdPb6BiNZmcZLGyTYiT61iGx9Rxx9GNeI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=