🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #7076

TextEdit Bugs

#7076
From: Paul DuBois
Date: Mon, 08 Sep 1986 16:50
56 lines
2825 bytes
I am going to conjecture that there is a certain bug in TextEdit,
and a depending-on-your-taste-it's-a bug as well.

Both of these relate to the use of word wrap in a TE record
(that is, when (**hTE).crOnly = 0).

Certain bug:  type a few lines into a text window, putting returns
at the end of each line, say

  ________________________________________
  |abc
  |def
  |ghi
  |

You can either put a cr at the end of the last line or not.  Now
click the mouse below the text and swipe up till the mouse is just
after the f or the c - that is, so that all lines below the mouse
are inverted, plus everything *after* the text on the line on which
the mouse is.

Hit backspace (or Cut or Clear).

All the selected text disappears, and you have a blinking caret after
the (now-)last line, which is as it should be.  But the rest of that
same line (where there is no text) remains inverted.  I find this
highly reproducible, both in my own programs, and in other applications
using word wrap in text records (e.g., the STR editing window in ResEdit).
No big deal, right.  Wrong.  I've noticed that this results in later
screwups in the window of caret activating/deactivating - sometimes
two carets appear, or the caret doesn't go away when the window is
deactivated.

Depending-on-taste bug:

It seems to me that the purpose of word wrap is to keep things from
disappearing off the right end of the view rectangle (assuming a
properly set up destination rectangle), and indeed, when you are
typing text words get shoved down to the next line if they'd go
off the right end.  But try this:  type some stuff almost to the
right edge.  Then type spaces.  You caret disappears.  It doesn't
wrap.  Clicking in the text puts the caret at the right spot, clicking
below the text makes it "go away" - it's really at the end of the
line with all the spaces at the end of it.  **That is, it's NOT
in the view rectangle.**

Can anyone confirm this, or (preferably) tell me that I'm doing
something wrong, and what to do instead?

-- 
Paul DuBois     UUCP: {allegra,ihnp4,seismo}!uwvax!uwmacc!dubois    |
                ARPA: dubois@easter                               --+--
                                                                    |
Begin at my sanctuary...                                            |
                          Ezekiel 9:6
Technical Details
Message-ID: <241@uwmacc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!uwvax!uwmacc!dubois

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!uwvax!uwmacc!dubois
From: dubois@uwmacc.UUCP (Paul DuBois)
Newsgroups: net.micro.mac
Subject: TextEdit Bugs
Message-ID: <241@uwmacc.UUCP>
Date: Mon, 8-Sep-86 12:50:42 EDT
Article-I.D.: uwmacc.241
Posted: Mon Sep  8 12:50:42 1986
Date-Received: Mon, 8-Sep-86 20:29:53 EDT
Distribution: net
Organization: Brain-Dead Software
Lines: 56