FIXFOR: Refactoring editor buffer functions of get bytes/symbols.
FIXFOR: Add threshold for file size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>