@Override
	public void moveTo(int pos) {
		if (pos >= 0 && pos <= getLength())
			super.moveTo(pos);
	}
Code area with additional parameter checks for some common edge cases.

@author Matt Coley
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/SafeCodeArea.java