Fix auto resize behavior
Improve completion in buffer source
Fix #592 cursor line problem
Improve buffer source highlight
Fix #593 auto resize problem