Skip to content

Commit

Permalink
Fix error in xfid undo handling
Browse files Browse the repository at this point in the history
This change fixes #499: nomark works correctly when setting the name
of a buffer.
  • Loading branch information
rjkroege committed Jun 21, 2024
1 parent 8eb4bb3 commit 9e2e53f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xfid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9e2e53f

Please sign in to comment.