Beispiel #1
0
        public IDisposable LoadSnapshot(BufferSnapshot snapshot)
        {
            var buffer = _buffer;

            _buffer.LoadSnapshot(snapshot);
            return(Actions.OnDispose(() => _buffer = buffer));
        }
Beispiel #2
0
 public void LoadSnapshot(BufferSnapshot snapshot)
 {
     Line     = snapshot.Line;
     Column   = snapshot.Column;
     Position = snapshot.Position;
 }