Cm5Editor.findPosH method
Cm5Editor › findPosH
Unofficial
Finds the target position for horizontal cursor motion.Signature:
findPosH(start: Position, amount: number, unit: string, visually: boolean): Cm5FindPosResultParameters:
| Parameter | Type | Description |
|---|---|---|
| start | Position | The starting position. |
| amount | number | The number of units to move (may be negative). |
| unit | string | The unit ("char", "column", or "word"). |
| visually | boolean | Whether motion should be visual rather than logical. |
Returns: Cm5FindPosResult — The target position, with hitSide set if the edge was reached.