Deleted parameters as the variables are globals. Suggested in #592
Revert "outsourced buffer action decision to function"

This reverts commit 573efd155740fef7fec03825f12bf8531a7e7942.

Conflicts:
	src/buffer.c
Reformatted switch-case as suggested in #592

- Moved opening brace to switch statement line
- Moved comments above case keywords
- Use // in comments rather than /* */