public void selectWordAt(FieldLocation location, EventTrigger trigger) {
		BigInteger index = location.getIndex();
		TerminalLayout layout = model.getLayout(index);
		if (layout == null) {
			return;
		}
		int start = Math.min(location.col, layout.line.findWord(location.col, false));
		int end = Math.max(location.col + 1, layout.line.findWord(location.col, true));
		FieldSelection sel = new FieldSelection();
		sel.addRange(new FieldLocation(index, 0, 0, start), new FieldLocation(index, 0, 0, end));
		fieldPanel.setSelection(sel, trigger);
	}
Select the whole word at the given location.

<p>
This is used for double-click to select the whole word.

@param location the cursor's location
@param trigger the cause of the selection
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalPanel.java