Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: cursor line

From: hijim:pronet at: 18-Aug-2001 10:11

Hi Anton, Thanks for trying to get this figured out. For the html and program editor there is no wrap, so counting newlines will work fine. But with wrap on, we need something else. I put your line-number: (system/view/line-info/offset/y - a/para/scroll/y - 2) / 15 into the program, but I get an error: ** Script Error: Cannot use path on none! value ** Where: get-lines ** Near: system/view/line-info/offset/y - my-area/para/scroll/y - 2
>>
The whole script is at http://www.geocities.com/~jimclatfelter/ed-txt.txt Your code is on line 17. I put a semi-colon in front so the program will run. The line information updates (for now) whenever you press the space key or click on Line or Lines or Pages. Thanks for trying to get this, Jim Anton wrote: