public int findWord(int x, boolean forward) {
		int step = forward ? 1 : -1;
		for (int i = x; i < len && i >= 0; i += step) {
			char ch = chars[i];
			if (isWordChar(ch)) {
				continue;
			}
			if (forward) {
				return i;
			}
			return i + 1;
		}
		if (forward) {
			return len;
		}
		return 0;
	}
Find the boundaries for the word at the given column

@param x the column, 0 up
@param forward true to find the end, false to find the beginning
@return the first column, 0 up, or the last column, exclusive, 0 up
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtLine.java