From a7b17fa472eb52844e19b140518f82d444708839 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Mon, 2 Jun 2008 18:06:15 +0000 Subject: [PATCH] clarified that start=end when there is no selection svn: r10093 --- collects/scribblings/gui/text-class.scrbl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/collects/scribblings/gui/text-class.scrbl b/collects/scribblings/gui/text-class.scrbl index 168dcb6669..e773cc2350 100644 --- a/collects/scribblings/gui/text-class.scrbl +++ b/collects/scribblings/gui/text-class.scrbl @@ -808,9 +808,12 @@ Returns @scheme[#t] if the editor is in overwrite mode, @scheme[#f] [end (or/c (box/c nonnegative-exact-integer?) false/c) #f]) void?]{ -Returns the current selection range in @techlink{position}s. See also - @method[text% get-start-position] and @method[text% - get-end-position]. +Returns the current selection range in @techlink{position}s. If +nothing is selected, the @scheme[start] and @scheme[end] will be +the same number and that number will be where the insertion point is. + +See also @method[text% get-start-position] +and @method[text% get-end-position]. @boxisfillnull[(scheme start) @elem{the starting @techlink{position} of the selection}] @boxisfillnull[(scheme end) @elem{the ending @techlink{position} of the selection}]