Re: [dev] [st] strange behaviour with nano

2013-02-28 Thread Martti Kühne
On Tue, Feb 26, 2013 at 7:10 PM, Christoph Lohmann 2...@r-36.net wrote: Greetings. On Tue, 26 Feb 2013 19:10:00 +0100 Roberto E. Vargas Caballero k...@shike2.com wrote: So it is more logical that pasting send '\r' instead of '\n', but it is a better place in selcopy 800

Re: [dev] [st] strange behaviour with nano

2013-02-26 Thread Christoph Lohmann
Greetings. On Tue, 26 Feb 2013 18:27:14 +0100 Roberto E. Vargas Caballero k...@shike2.com wrote: So it is more logical that pasting send '\r' instead of '\n', but it is a better place in selcopy 800 if(is_selected y sel.e.y) 801

Re: [dev] [st] strange behaviour with nano

2013-02-26 Thread Roberto E. Vargas Caballero
On Tue, 26 Feb 2013 18:27:14 +0100 Roberto E. Vargas Caballero k...@shike2.com wrote: So it is more logical that pasting send '\r' instead of '\n', but it is a better place in selcopy 800 if(is_selected y sel.e.y) 801

Re: [dev] [st] strange behaviour with nano

2013-02-25 Thread Roberto E. Vargas Caballero
On Mon, Feb 25, 2013 at 04:44:11AM +0400, Alexander Sedov wrote: Commenting on this even further: - tested whether st rightfully extracts selection contents. It does, as debug output told me, so the problem is in nano. Usually we try don't add code for fixing bugs in others programs.

Re: [dev] [st] strange behaviour with nano

2013-02-25 Thread Alexander Sedov
2013/2/25 Roberto E. Vargas Caballero k...@shike2.com On Mon, Feb 25, 2013 at 04:44:11AM +0400, Alexander Sedov wrote: Commenting on this even further: - tested whether st rightfully extracts selection contents. It does, as debug output told me, so the problem is in nano.

Re: [dev] [st] strange behaviour with nano

2013-02-25 Thread Christoph Lohmann
Greetings. On Mon, 25 Feb 2013 20:57:36 +0100 Alexander Sedov alex0pla...@gmail.com wrote: 2013/2/25 Roberto E. Vargas Caballero k...@shike2.com On Mon, Feb 25, 2013 at 04:44:11AM +0400, Alexander Sedov wrote: Commenting on this even further: - tested whether st rightfully

Re: [dev] [st] strange behaviour with nano

2013-02-25 Thread Roberto E. Vargas Caballero
You meant nano :P. Well, we are pasting text using keyboard emulation (writing to fd). Keyboard sends \n, not \r. So it makes total sense. Sorry, you are right, I mixed this mail with other (and like nano is the editor of alpine it was confusing for me). Maybe you are right and we should

Re: [dev] [st] strange behaviour with nano

2013-02-24 Thread Alexander Sedov
Commenting on this: you don't really need to open a new file, either; just try to paste to a line that has no empty line before it. As a bonus, it wrecks syntax highlighting. 2013/2/24 Andreas Marschall andreas.marsch...@unitybox.de hello, this is my first post in a mailing list ever so I

Re: [dev] [st] strange behaviour with nano

2013-02-24 Thread Alexander Sedov
Commenting on this even further: - tested whether st rightfully extracts selection contents. It does, as debug output told me, so the problem is in nano. - compared rxvt tt_write() with st ttywrite. rxvt's does one more thing: replaces linefeeds with carriage returns. - wrote a patch and test.

[dev] [st] strange behaviour with nano

2013-02-23 Thread Andreas Marschall
hello, this is my first post in a mailing list ever so I hope you guys are not too harsh on me. One thing I noticed when using st in combination with nano (which I usually don't do but rather vim) Opening a text file in nano and marking a few lines with the mouse to copy it to another