NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Bug: Code Template cursor insertion/placement is incorrect


Joined: 03 Apr 2004
Posts: 78
Reply with quote
In these shots I had to build my own cursor since the snapshot didn't show the caret.

Here is my template:


You can see the cursor is supposed to be placed just before the parens...

I type "function", then hit CTRL-J to make that template replace my "function" text:


This is the result:


The caret is sitting 2 characters behind where I wanted it to be.

A work around in the interim is setting the caret to be 3 chars beyond where you want the insertion to land:


I think I've narrowed down the problem to be 'tab' characters and linefeed characters or a combination of whitespace characters. Single line templates work fine if they dont have whitespace:
Code:

foreach (|)
{
}


Works fine. Odd..
View user's profileFind all posts by Rick ChristySend private messageYahoo Messenger
Bug: Code Template cursor insertion/placement is incorrect
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic