/[antiright]/antiright/src/arshell/textedit.c
ViewVC logotype

Diff of /antiright/src/arshell/textedit.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by jefbed, Thu Aug 19 00:31:32 2004 UTC revision 1.13 by jefbed, Mon Aug 23 01:15:56 2004 UTC
# Line 143  void Line 143  void
143  arshell_goto_line(unsigned int line)  arshell_goto_line(unsigned int line)
144  {  {
145    /* Declare a counter for the number of lines counted.  */    /* Declare a counter for the number of lines counted.  */
146    int line_counter=1;    unsigned int line_counter=1;
147    /* Declare a text position counter. */    /* Declare a text position counter. */
148    XmTextPosition position=0;    XmTextPosition position=0;
149    char *text=XmTextGetString(arshell.gui.widgets.work);    char *text=XmTextGetString(arshell.gui.widgets.work);
150    unsigned int text_length=strlen(text);    unsigned int text_length=strlen(text);
151    while((position<text_length) & (line_counter<line))    while(((unsigned int)position < text_length) & (line_counter<line))
152      {      {
153        if(text[position]=='\n')        if(text[position]=='\n')
154          line_counter++;          line_counter++;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26