Red Gate forums :: View topic - Bug: Ctrl+Enter after sql keyword jumbles text
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt 6
SQL Prompt 6 forum

Bug: Ctrl+Enter after sql keyword jumbles text

Search in SQL Prompt 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
noodle



Joined: 23 Dec 2013
Posts: 1

PostPosted: Mon Dec 23, 2013 8:50 pm    Post subject: Bug: Ctrl+Enter after sql keyword jumbles text Reply with quote

Howdy,

When I used Ctrl+Enter with my cursor against a sql keyword, the keyword gets jumbled. Depending on the keyword, there must be text above the cursor's line for this to happen.

Example:


Code:

SELECT
*
FROM
sys.objects AS o
WHERE name LIKE '%z%'
GROUP BY| -- cursor here

/* results in */

SELECT
*
FROM
sys.objects AS o
WHERE name LIKE '%z%'

GROUBYBY



Thanks!
-Noodle
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 210
Location: Red Gate Software

PostPosted: Tue Dec 24, 2013 11:35 am    Post subject: Reply with quote

Wow that’s pretty odd, thanks for pointing this out and providing the reproduction steps. I'll look into seeing if I can figure out why it's doing that.

Thanks,
Aaron.
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 210
Location: Red Gate Software

PostPosted: Tue Dec 24, 2013 1:37 pm    Post subject: Reply with quote

I think I have a fix for you in this private build - We didn't take into account that you can insert a newline before the caret when changing the case of a keyword.

Out of curiosity which build are you currently using? (I had to set my keywords to lowercase to reproduce it on 6.2 since prompt should have left "BY" alone as it's already in uppercase)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group