Improved source select handler

- Now uses nulls as command separators instead of newline characters
  (In the future we should also handle filenames with newlines)
- Handling $BUFFER size when marking line cursor