Ctrl+C with no text selected copies the current line to the clipboard

Steps to reproduce

  • Create a new note in edit mode
  • Type ‘foo’, then select ‘foo’ and press Ctrl+C (copy to clipboard)
  • Unselect text (click away)
  • Press enter for new line
  • Type ‘bar’, but do not press enter and do not select any text
  • Press Ctrl+C
  • Press Ctrl+V

Expected result

‘foo’ should be pasted from the clipboard.

Actual result

‘bar’ is copied to and pasted from the clipboard.


  • Operating system: Windows 10
  • Obsidian version: 0.9.13

Additional information

Ctrl+C behavior in Notepad and Notepad++ when no text is selected does not affect the current clipboard contents.

Same thing happens in VScode. Not a bug. Open a feature request if you want to change this behaviour. I like the way it is.