@Override
		public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
			codeArea.moveTo(Math.min(codeArea.getLength(), pos));
			observable.removeListener(this);
		}
Handles re-positioning the caret to the same location after the text document has been updated.

@see #setText(String)
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/Editor.java