From 34ed91bd900937447fb79e88f276fe19e6aba457 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 7 May 2022 11:50:11 -0700 Subject: Fix spelling/wording issues Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith --- src/Text.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/Text.c') diff --git a/src/Text.c b/src/Text.c index 82cdef5..c37b349 100644 --- a/src/Text.c +++ b/src/Text.c @@ -567,7 +567,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) ctx->text.numranges = ctx->text.maxranges = 0; ctx->text.gc = DefaultGCOfScreen(XtScreen(ctx)); ctx->text.hasfocus = FALSE; - ctx->text.margin = ctx->text.r_margin; /* Strucure copy. */ + ctx->text.margin = ctx->text.r_margin; /* Structure copy. */ ctx->text.update_disabled = FALSE; ctx->text.old_insert = -1; ctx->text.mult = 1; @@ -775,7 +775,7 @@ _XawTextGetText(TextWidget ctx, XawTextPosition left, XawTextPosition right) else if (_XawTextFormat(ctx) == XawFmtWide) bytes = sizeof(wchar_t); #endif - else /* if there is another fomat, add here */ + else /* if there is another format, add here */ bytes = 1; /* leave space for ZERO */ @@ -1045,7 +1045,7 @@ _BuildLineTable(TextWidget ctx, XawTextPosition position, /* Function Name: GetWidestLine * Description: Returns the width (in pixels) of the widest line that - * is currently visable. + * is currently visible. * Arguments: ctx - the text widget. * Returns: the width of the widest line. * @@ -2154,8 +2154,8 @@ DisplayText(Widget w, XawTextPosition pos1, XawTextPosition pos2) /* * This routine implements multi-click selection in a hardwired manner. * It supports multi-click entity cycling (char, word, line, file) and mouse - * motion adjustment of the selected entitie (i.e. select a word then, with - * button still down, adjust wich word you really meant by moving the mouse). + * motion adjustment of the selected entity (i.e. select a word then, with + * button still down, adjust which word you really meant by moving the mouse). * [NOTE: This routine is to be replaced by a set of procedures that * will allows clients to implements a wide class of draw through and * multi-click selection user interfaces.] @@ -2657,7 +2657,7 @@ ProcessExposeRegion(Widget w, XEvent *event, Region region) } /* - * This routine does all setup required to syncronize batched screen updates + * This routine does all setup required to synchronize batched screen updates */ void @@ -2730,11 +2730,11 @@ _XawTextShowPosition(TextWidget ctx) return; /* - * Find out the bottom the visable window, and make sure that the + * Find out the bottom the visible window, and make sure that the * cursor does not go past the end of this space. * * This makes sure that the cursor does not go past the end of the - * visable window. + * visible window. */ x = ctx->core.width; @@ -2743,7 +2743,7 @@ _XawTextShowPosition(TextWidget ctx) y -= ctx->text.hbar->core.height + 2 * ctx->text.hbar->core.border_width; max_pos = PositionForXY (ctx, x, y); - lines = LineForPosition(ctx, max_pos) + 1; /* number of visable lines. */ + lines = LineForPosition(ctx, max_pos) + 1; /* number of visible lines. */ if ( (ctx->text.insertPos >= ctx->text.lt.top) && (ctx->text.insertPos < max_pos)) @@ -2777,7 +2777,7 @@ _XawTextShowPosition(TextWidget ctx) first = SrcScan(ctx->text.source, first, XawstPositions, XawsdRight, 1, TRUE); - /* Check to make sure the cursor is visable. */ + /* Check to make sure the cursor is visible. */ if (first <= top) number++; @@ -2972,7 +2972,7 @@ GetValuesHook(Widget w, ArgList args, Cardinal * num_args) } /* Function Name: FindGoodPosition - * Description: Returns a valid position given any postition + * Description: Returns a valid position given any position * Arguments: pos - any position. * Returns: a position between (0 and lastPos); */ @@ -3037,7 +3037,7 @@ PopCopyQueue(TextWidget ctx) /* Function Name: TranslateExposeRegion * Description: Translates the expose that came into - * the cordinates that now exist in the Text widget. + * the coordinates that now exist in the Text widget. * Arguments: ctx - the text widget. * expose - a Rectangle, who's region currently * contains the expose event location. -- cgit v1.2.3