commitmsg: better copy/paste behavior
commit90b125c67c109181acf83c7fed59e3011b0d03d4
authorDavid Aguilar <davvid@gmail.com>
Tue, 10 Dec 2013 05:57:07 +0000 (9 21:57 -0800)
committerDavid Aguilar <davvid@gmail.com>
Tue, 10 Dec 2013 06:03:21 +0000 (9 22:03 -0800)
treeb7bf7dff16b3104527d318204ad93f3f0f8941cd
parentcfa2e05ab56cda2d1c3dc1494d4756301d3bfec9
commitmsg: better copy/paste behavior

Qt allows users to paste newlines into the `summary` field even though
it's not something that's normally allowed via the keyboard.  This is
unwanted because the commit message may contain more than what is
visible in the single-line field.

Allow users to paste multiple lines of text into the `summary` field by
automatically splitting it apart so that everything beyond the first
newline is moved to the `Extended description` field.

This prevents newlines from entering the `summary` field and improves
the editor's usability when pasting multiple lines of text.

Closes #212

Reported-by: @grandinj via github.com
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/widgets/commitmsg.py
share/doc/git-cola/relnotes.rst