TobiasChe / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
0 stars 0 forks source link

paste multiple lines loses some text #956

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Required information!
OS version: Win7   SP?   x64
ConEmu version: 130220 [64]
Far version (if you are using Far Manager): n/a

Pasting multiple lines is losing some characters. 

*Steps to reproduction*
1. place this text into notepad++ 
   port = 5232
   sdl = server = null

   url = "http://localhost:#{port}"
1a. copy text from 1 to clipboard (all lines) 
2. in conemu, start coffeescript repl (`coffee` from command line) 
3. shift-ins to paste copied text into coffee console 

Result: 

coffee> port = 5232                                                             

5232                                                                            

coffee> sdl = server = null                                                     

null                                                                            

coffee> ocalhost:#{port}"                                                       

Error: In repl, Parse error on line 1: Unexpected '}'                           

    at Object.parseError (c:\Users\jcollum\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee-
script\parser.js:477:11)      

Third line loses first 10 characters or so, causing pasted text to fail. This 
doesn't happen at a regular command line, so this might have something to do 
with ConEmu's relationship to the REPL utility (coffee/node). Seems to be just 
the Coffeescript REPL, Node REPL isn't seeing this issue.                       

I tracked it down a bit more and it seems that blank lines are causing the 
issue: 

This causes error: 
  sdl = server = null
  port = 5232

  url = "http://localhost:#{port}"

While this does not: 
  sdl = server = null
  port = 5232
  url = "http://localhost:#{port}"

The EOL chars are CRLF. 

Original issue reported on code.google.com by jcol...@hcgprevision.com on 22 Feb 2013 at 6:42

GoogleCodeExporter commented 9 years ago
Two things
1. What is coffee?
2. Run this cofee in standard console window (no ConEmu), call "paste" from 
window menu. What happens?

ATM, I believe that your tool eat up some characters while executing commands. 
ConEmu send text to console same way as you typing from keyboard. But faster of 
course.

Original comment by ConEmu.Maximus5 on 22 Feb 2013 at 6:52

GoogleCodeExporter commented 9 years ago
Coffee is the Coffeescript REPL. 

I tried pasting those lines into the coffee repl in both windows cmd and 
git-bash. No problems, it worked as intended. Also tried pasting about 20 lines 
into coffee in git-bash with no issues. 

Original comment by jcol...@hcgprevision.com on 22 Feb 2013 at 6:58

GoogleCodeExporter commented 9 years ago
Link & version

Original comment by ConEmu.Maximus5 on 22 Feb 2013 at 7:15

GoogleCodeExporter commented 9 years ago
Version is in OP. What link do you need? 

Original comment by jcol...@hcgprevision.com on 22 Feb 2013 at 8:43

GoogleCodeExporter commented 9 years ago
Oh, maybe you need this: http://coffeescript.org/#installation

Original comment by jcol...@hcgprevision.com on 22 Feb 2013 at 8:48

GoogleCodeExporter commented 9 years ago
I'm using coffeescript v 1.4.0

Original comment by jcol...@hcgprevision.com on 22 Feb 2013 at 8:49

GoogleCodeExporter commented 9 years ago
Ok, I'll take a look.

Original comment by ConEmu.Maximus5 on 22 Feb 2013 at 10:23