Custom Surround Template with #region bug


Lets have an custom surround template like this:

#region $REGIONNAME$ $END$
$SELECTION$
#endregion $REGIONNAME$


Then i use this surround template on selected block of text:

int value = GetSomeValue();
if (value == 0)
{
DoSomething();
}

run this surround with template gets:

#region |

int value = GetSomeValue();
if (value == 0)
{
DoSomething();
}

#endregion

| is where is cursor to enter name to property $REGIONNAME$. When i now
press Ctrl+V (Paste from clipboard, where i have string e.g. "Testing
region") it pastes broken string "Testing re" like this:


#region Testing re

int value = GetSomeValue();
if (value == 0)
{
DoSomething();
}

#endregion

This is bug.
R# 4.5 build 1180

--
by Peter Sulek at 25. 2. 2009 11:58:25
XanaNews 1.18.1.6

Please sign in to leave a comment.