question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Safari 8] Pasting a copied or cut linewise selection adds an extra line

See original GitHub issue

Repro (Safari only):

On codemirror.net, cut the line beginning with var editor: move the cursor to the beginning of the line, hold down Shift, press Down, release Shift, cut with Cmd + X, then paste with Cmd + V.

One more line is pasted than was cut, so after the operation you’ve got a blank line that wasn’t there before:

<script>
  var editor = CodeMirror.fromTextArea(myTextarea, {

    mode: "text/html"
  });
</script>

Only appears to repro for the new version of Safari that shipped with Yosemite (i.e. Safari 8). Perhaps a regression of this WebKit bug? https://bugs.webkit.org/show_bug.cgi?id=49288

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mallmancommented, Apr 18, 2017

Just FYI, still broken as of Safari 10.0.3.

0reactions
xzel23commented, Jan 13, 2019

JavaFX WebView component is also affected (Version 11 and 12-ea). It’s also based on Webkit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Safari 8] Pasting a copied or cut linewise selection adds an ...
Repro (Safari only): On codemirror.net, cut the line beginning with var editor: move the cursor to the beginning of the line, ...
Read more >
Select, cut, copy, and paste text on iPhone - Apple Support
Select, cut, copy, and paste text on iPhone. In apps on iPhone, you can use the onscreen keyboard to select and edit text...
Read more >
Copying Whole Lines - EmacsWiki
SlickEdit, TextMate and VisualStudio have clever line-wise behavior: if no text is selected, the copy and cut commands act on the current line...
Read more >
How to Strip Formatting When You Copy and Paste Text: 5 Ways
Head to File > Options and select the Advanced tab on the left. Here, look under the Cut, copy, and paste header for...
Read more >
How to use Guacamole to copy and paste text or files in ...
After the text is copied to the remote clipboard, the Guacamole menu can be closed. The text from the clipboard can be pasted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found