Re: What's the "Hangul shaper"? Sounds like a power tool...



On Fri, May 25, 2001 at 11:53:36AM +1000, Neil Hodgson wrote:
> Havoc Pennington:
> > "Neil Hodgson" <nhodgson bigpond net au> writes:
> > >    Not only is it Broken On Purpose but some Tk users insist it is the
> Right
> > > Thing To Do, to the extent that they want this behaviour added to
> Scintilla,
> > > my text widget. So if you do fix it, you should probably make the fix
> > > conditional.
> > >
> >
> > Do they have a decent rationale for the behavior? If so I'm happy to
> > declare it a feature. ;-)
> 
>    There is the idea that a text file is a sequence of lines each terminated
> with a line terminator - the old terminator versus separator ideological
> split. I was told that C's standard IO library is permitted to, and some
> implementations do, insert a final newline at the end of files in order to
> maintain this concept.

For what it's worth IMHO that's a flawed argument :)
If you were going to write a text widget according to that, then putting text after the first newline character (on the second line) should automatically create a third line. And if that is the case, you shouldn't get a second line until you begin typing on the first line anyway. So any way you slice it an empty buffer is still a special case without any conceptual reason.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]