validate-loc ( loc document -- newloc )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Editor gadgets » Documents » Document locations

Prev:lines-equal? ( loc1 loc2 -- ? )


Vocabulary
documents

Inputs
loca pair of integers
documenta document


Outputs
newloca pair of integers


Word description
Ensures that the line and column numbers in loc are valid, clamping them to the permitted range if they are not.

Definition