[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: tortoisemerge doesn't show last empty line

From: Paul van der Hulst <paul_at_piak.nl>
Date: Wed, 11 Mar 2009 03:14:35 -0700 (PDT)

> TortoiseMerge is not a text editor, so to add a new line you have to
> press enter first to create a new line.
>
> Lines in TortoiseMerge are treated as text with a line ending (CR/LF).
> If there is no text and no line ending, then the line does not really
> exist: text editors can show the cursor there because of the CR/LF after
> the previous line, but that line doesn't really exist.
>
The reason I posted this as a bug is that C requires a line ending after the last closing brace. Since most source editors are simple text editors line notepad, they don't force this behaviour.
In the current situation tortoisemerge does not show an empty (numbered) line after the return, and thus I might think there's a bug in my source code if the line below the last closing '}' isn't numbered.

By the way, text without line endings are also treated as lines by tortoisemerge: if I delete the last return after '}', tortoisemerge still shows a line with '}'.

You say tortoisemerge is not a text editor. Given the (text) nature of source files, maybe tortoisemerge should be just that, to be consistent with the rest of the development environment.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1307303

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-03-11 11:17:25 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.