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

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