Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-22 Fir de Conversatie Christian Brabandt
Hi Bram! On So, 20 Mär 2011, Bram Moolenaar wrote: > > Christian Brabandt wrote: > > > On Do, 17 Mär 2011, Bram Moolenaar wrote: > > > > > If you do gH it deletes the line. It's only on the last line that > > > it makes the line empty. Let's call that a bug. > > > > > > Someone who wants to

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-20 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: > On Do, 17 Mär 2011, Bram Moolenaar wrote: > > > If you do gH it deletes the line. It's only on the last line that > > it makes the line empty. Let's call that a bug. > > > > Someone who wants to fix this? > > diff --git a/src/normal.c b/src/normal.c > --- a/src/no

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-19 Fir de Conversatie Christian Brabandt
Hi Bram! On Do, 17 Mär 2011, Bram Moolenaar wrote: > If you do gH it deletes the line. It's only on the last line that > it makes the line empty. Let's call that a bug. > > Someone who wants to fix this? diff --git a/src/normal.c b/src/normal.c --- a/src/normal.c +++ b/src/normal.c @@ -1776,6

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Ben Schmidt
In Notepad, if there is no empty end line, you cannot select the last end of line, so it is left on Delete (or Backspace). Actually, I don't think such a character exists. What looks like a 'blank line' at the end of a document in Notepad is simply the position after the final \n in the document

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Bram Moolenaar
Ben Schmidt wrote: > Make a "Select line" selection on a line (triple click in Windows > with default _vimrc). Extend the selection to the end of the file > (Shift click in Windows) > > Delete > > A blank line is left at the end of the file (Windows or unix). >

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Jean Johner
On Mar 17, 10:20 am, "Christian Brabandt" wrote: > Hm, after thinking about it, I wouldn't consider this a bug as this > behaves exactly as it works in other Windows applications. > (e.g. take notepad, open a file and select a line until the end of the > file. If you delete the selection, you are

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Christian Brabandt
On Thu, March 17, 2011 12:05 pm, Ben Schmidt wrote: > I think it is a bug. That behaviour in other Windows apps is because > they only have the concept of a characterwise selection. When you are in Ultraedit behaves that way to. And I think this has line wise selection mode. > SELECT LINE mode ra

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Anurag Priyam
>> See if ":help endofline" is relevant to your doubt/problem. > > I don't see a section endofline and 'endofline' doesn't mention his > problem. My bad. I misunderstood the problem. -- Anurag Priyam http://about.me/yeban/ -- You received this message from the "vim_dev" maillist. Do not top-po

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Ben Schmidt
Make a "Select line" selection on a line (triple click in Windows with default _vimrc). Extend the selection to the end of the file (Shift click in Windows) Delete A blank line is left at the end of the file (Windows or unix). No such problem with the equivalent "Visual line" selection and Dele

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Christian Brabandt
On Thu, March 17, 2011 10:14 am, Christian Brabandt wrote: > On Thu, March 17, 2011 9:04 am, Anurag Priyam wrote: >> On Thu, Mar 17, 2011 at 3:15 AM, Jean Johner wrote: >> [...] >>> Make a "Select line" selection on a line (triple click in Windows with >>> default _vimrc). >>> Extend the selection

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Christian Brabandt
On Thu, March 17, 2011 9:04 am, Anurag Priyam wrote: > On Thu, Mar 17, 2011 at 3:15 AM, Jean Johner wrote: > [...] >> Make a "Select line" selection on a line (triple click in Windows with >> default _vimrc). >> Extend the selection to the end of the file (Shift click in Windows) >> >> Delete >> >

Re: Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-17 Fir de Conversatie Anurag Priyam
On Thu, Mar 17, 2011 at 3:15 AM, Jean Johner wrote: [...] > Make a "Select line" selection on a line (triple click in Windows with > default _vimrc). > Extend the selection to the end of the file (Shift click in Windows) > > Delete > > A blank line is left at the end of the file (Windows or unix).

Deleting a "Select line" selection at the end of a file leaves a blank line

2011-03-16 Fir de Conversatie Jean Johner
Hello, Make a "Select line" selection on a line (triple click in Windows with default _vimrc). Extend the selection to the end of the file (Shift click in Windows) Delete A blank line is left at the end of the file (Windows or unix). No such problem with the equivalent "Visual line" selection a