History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-15811
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Pasting XML fragment garbles text if column mode active

Created: 17 Oct 07 17:59   Updated: 18 Oct 07 22:26
Component/s: Editor. Editing Text, XML editing

Build: 7,361


 Description  « Hide
Contents of current editor (caret location marked with "|"):
<foo>
   |
</foo>

Contents of copy-paste buffer:

<bar>
  <baz/>
</bar>

Pasting buffer at caret location with column-mode active produces garbled result:

<foo>
  <bar>
</</bar>  <baz/>foo>


 All   Comments   Work Log   Change History      Sort Order:
Maxim Shafirov - 18 Oct 07 19:50
It may sound strange, but basically, this is how it should work. In column mode paste pastes first line of the buffer where caret stands, then moves caret one line down, pastes second line from the buffer and so on. Anyway, what result you feel is proper?

Taras Tielkes - 18 Oct 07 22:26
Maxim,

I was not aware that Column-mode was active when I performed the paste operation.
After thinking about it, it sounds logical that column-mode has different paste behavior.

Obviously I wasn't expecting Paste to be column-mode aware. But now that I know that, I may perhaps use it specifically for that purpose in the future.

One enhancement that I could think of is a visual indication that a "special" "column-mode paste" has been performed.
Perhaps the pasted block could be given a distinct highlight that disappears when editing continues?