Re: setpos() and up = wrong position

2013-08-22 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Mo, 19 Aug 2013, Christian Brabandt wrote: May be another optional parameter to the setpos() function, that if given specifies the desired cursor position? Like the attached patch does. Hmm, I wonder if the extra list elements are going to cause a problem

Re: setpos() and up = wrong position

2013-08-22 Fir de Conversatie Christian Brabandt
On Thu, August 22, 2013 17:23, Bram Moolenaar wrote: Christian Brabandt wrote: On Mo, 19 Aug 2013, Christian Brabandt wrote: May be another optional parameter to the setpos() function, that if given specifies the desired cursor position? Like the attached patch does. Hmm, I wonder if

Re: setpos() and up = wrong position

2013-08-22 Fir de Conversatie Nikolay Pavlov
On Aug 22, 2013 8:05 PM, Christian Brabandt cbli...@256bit.org wrote: On Thu, August 22, 2013 17:23, Bram Moolenaar wrote: Christian Brabandt wrote: On Mo, 19 Aug 2013, Christian Brabandt wrote: May be another optional parameter to the setpos() function, that if given specifies the

Re: setpos() and up = wrong position

2013-08-22 Fir de Conversatie Christian Brabandt
On Do, 22 Aug 2013, Nikolay Pavlov wrote: I bet there is a bunch of scripts using 4-variable lets. Simple grep over What do you mean with 4-variable lets? the mess in $HOME/.vam (I hold all but my plugins there) found at least LaTeX_box plugin (ftplugin/latex-box/common.vim) and

Re: setpos() and up = wrong position

2013-08-22 Fir de Conversatie Nikolay Pavlov
On Aug 22, 2013 10:24 PM, Christian Brabandt cbli...@256bit.org wrote: On Do, 22 Aug 2013, Nikolay Pavlov wrote: I bet there is a bunch of scripts using 4-variable lets. Simple grep over What do you mean with 4-variable lets? let [a,b,c,d]=e the mess in $HOME/.vam (I hold all but

Re: setpos() and up = wrong position

2013-08-22 Fir de Conversatie Bram Moolenaar
Nikolay Pavlov wrote: On Aug 22, 2013 8:05 PM, Christian Brabandt cbli...@256bit.org wrote: On Thu, August 22, 2013 17:23, Bram Moolenaar wrote: Christian Brabandt wrote: On Mo, 19 Aug 2013, Christian Brabandt wrote: May be another optional parameter to the setpos() function,

Re: setpos() and up = wrong position

2013-08-22 Fir de Conversatie Nikolay Pavlov
On Aug 23, 2013 1:07 AM, Bram Moolenaar b...@moolenaar.net wrote: Nikolay Pavlov wrote: On Aug 22, 2013 8:05 PM, Christian Brabandt cbli...@256bit.org wrote: On Thu, August 22, 2013 17:23, Bram Moolenaar wrote: Christian Brabandt wrote: On Mo, 19 Aug 2013, Christian Brabandt

Re: setpos() and up = wrong position

2013-08-19 Fir de Conversatie John Little
On Monday, August 19, 2013 8:16:23 PM UTC+12, Dimitar DIMITROV wrote: If you use up down k or j you will not move just above/below the char but in some weird location My vim 7.4 doesn't do this, but 7.3.547 does, so it looks like a bug that's been fixed. Regards, John Little -- -- You

Re: setpos() and up = wrong position

2013-08-19 Fir de Conversatie Dimitar DIMITROV
If you use up down k or j you will not move just above/below the char but in some weird location My vim 7.4 doesn't do this, but 7.3.547 does, so it looks like a bug that's been fixed. I used version 7.4 with Included patches: 1-5 so not sure how come you're not seing it. Also used: vim

RE: setpos() and up = wrong position

2013-08-19 Fir de Conversatie John Beckett
Dimitar DIMITROV wrote: Now try :ec getpos('.') - [0, 4, 17, 0] Move away and :call setpos('.',[0,4,17,0]) If you use up down k or j you will not move just above/below the char but in some weird location Say the cursor is in column 20, then setpos() is used to jump to [d], then k is pressed.

RE: setpos() and up = wrong position

2013-08-19 Fir de Conversatie Christian Brabandt
On Mon, August 19, 2013 11:30, John Beckett wrote: Dimitar DIMITROV wrote: Now try :ec getpos('.') - [0, 4, 17, 0] Move away and :call setpos('.',[0,4,17,0]) If you use up down k or j you will not move just above/below the char but in some weird location Say the cursor is in column 20, then

Re: setpos() and up = wrong position

2013-08-19 Fir de Conversatie glts
On Mon, Aug 19, 2013 at 10:16 AM, Dimitar DIMITROV mitk...@yahoo.fr wrote: I will use the following text as an example: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud

Re: setpos() and up = wrong position

2013-08-19 Fir de Conversatie Christian Brabandt
On Mo, 19 Aug 2013, Christian Brabandt wrote: May be another optional parameter to the setpos() function, that if given specifies the desired cursor position? Like the attached patch does. regards, Christian -- Es gehört viel dazu, eine Brücke hinter sich abzureißen, wenn man auch keine vor