From a0621d9ab4801054ce636e179749f0efc3947d0e Mon Sep 17 00:00:00 2001 From: Robert Kroeger Date: Fri, 21 Jun 2024 18:28:33 -0400 Subject: [PATCH] Fix error in xfid undo handling This change fixes #499: nomark works correctly when setting the name of a buffer. --- xfid.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xfid.go b/xfid.go index f5f36721..02c5348c 100644 --- a/xfid.go +++ b/xfid.go @@ -600,8 +600,10 @@ forloop: break forloop } } - global.seq++ - w.body.file.Mark(global.seq) + if !w.nomark { + global.seq++ + w.body.file.Mark(global.seq) + } w.SetName(string(r)) case "dump": // set dump string if len(words) < 2 {