public IDisposable LoadSnapshot(BufferSnapshot snapshot) { var buffer = _buffer; _buffer.LoadSnapshot(snapshot); return(Actions.OnDispose(() => _buffer = buffer)); }
public void LoadSnapshot(BufferSnapshot snapshot) { Line = snapshot.Line; Column = snapshot.Column; Position = snapshot.Position; }