home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14012 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.2 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!cs.utexas.edu!natinst.com!stepan
  2. From: stepan@natinst.com (Stepan Riha)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: TextEdit bug in 7.0
  5. Message-ID: <1992Aug14.214312.22890@natinst.com>
  6. Date: 14 Aug 92 21:43:12 GMT
  7. References: <1992Aug14.204628.12494@pollux.lu.se>
  8. Sender: news@natinst.com
  9. Organization: National Instruments, Austin, TX
  10. Lines: 34
  11. Nntp-Posting-Host: falcon.natinst.com
  12.  
  13. In article <1992Aug14.204628.12494@pollux.lu.se> roland.mansson@ldc.lu.se (Roland Mansson) writes:
  14. >I think I've found a bug in TextEdit in System 7. I've verified it by
  15. >booting of the System Tools disk (S-7.0.1) and running TeachText (S-7.0).
  16. >
  17. >The bug is that sometimes when moving the insertion point with the left
  18. >arrow key, the insertion point ends up in a wrong position.
  19. >
  20. >What happens is that (sometimes) when the insertion point is between char
  21. >1 and 2 of a line and you press the left arrow key, the insertion point
  22. >moves to the end of the previous line (ie not to before char 1 on the
  23. >current line, as it should).
  24. >
  25. :
  26. >Is this a know bug? Is there a workaround? My main concern is not
  27. >TeachText, but I have the same problem in my own app.
  28.  
  29. This is NOT a bug but is described in detail in IM VI pp. 15-6 through 15-8.
  30. The problem is that "a single caret position can correspond to two character
  31. offsets."  The trailing edge of character N and the leading edge of character
  32. N+1 would have the same caret position (in left-to-right text).
  33. You'll notice that your problem only occurs if you click on the left side of
  34. a character and then use the arrows to get to the end of the line.
  35. So if your caret is on the trailing edge of the 1st character on a line and
  36. you move it left, it's going to be on the trailing edge of the last character
  37. on the previous line, i.e. at the right line end.
  38. I wish, though, that Apple would check for the special case when the last
  39. character of the previous line is a '\r', and would say that the trailing
  40. edge of a '\r' is actually the beginning of the next line.  Right now the
  41. carret stays at the right line end and you have to hit the arrow key TWICE
  42. without any visual feedback :-(
  43.  
  44. Stepan
  45. -- 
  46.    Stepan Riha -- stepan@natinst.com
  47.