} else {
newFollower.addNode(newPoint);
}
Main.main.undoRedo.add(new SequenceCommand(tr("Follow line"),
new ChangeCommand(follower, newFollower),
new SelectCommand(newFollower.isClosed() // see #10028 - unselect last node when closing a way
? Arrays.<OsmPrimitive>asList(newFollower)
: Arrays.<OsmPrimitive>asList(newFollower, newPoint)
))
);
// "viewport following" mode for tracing long features