limetext / backend

Backend for LimeText
BSD 2-Clause "Simplified" License
538 stars 87 forks source link

Stop exporting buffer in view #88

Closed zoli closed 8 years ago

zoli commented 8 years ago

I suggest stop exporting buffer in view, we should just export some necessary functionality through view e.g functions currently included in view_buffer_generated.go so we will have Fullline, Line, Substr, ... as separate methods for View.

My main reasons are:

zoli commented 8 years ago

While looking in commands saw this(using v.Buffer().Erase instead of v.Erase) exporting buffer without necessity results in people using it in a wrong way. There are more examples in commands package specially in tests.