public int getInsertionPosition(int pos) {
		if (prefixEnabled) {
			if (pos <= 2) {
				return 2;
			}
			else if (pos < symbolSize) {
				return pos;
			}
			else {
				return symbolSize - 1;
			}
		}
		if (pos <= 0) {
			return 0;
		}
		else if (pos < symbolSize) {
			return pos;
		}
		else {
			return symbolSize - 1;
		}
	}
Gets the position where the cursor should be placed in
order to do an 'overwrite' of data.
@param position current position of the cursor within
the data unit.
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/format/HexFormatModel.java