Thread: Parentheses

Parentheses

From
"Raymond O'Donnell"
Date:
Hi Dave,

Hope this doesn't push your blood pressure any further, but here's a 
small funny I found using Beta 3 (16 October, rev: 5475:5496) - maybe 
it's already been noted and fixed? -

(i) In the SQL query editor, enter an empty pair of parentheses: ().
(ii) The matching mechanism kicks in, and highlights them with blue; 
at the same time the cursor jumps one space further to the right, 
leaving the parenthese and the empty space all highlighted in blue.
(iii) Try moving the cursor to the left using left-arrow: the first 
keypress moves it over the empty space, while the second one moves it 
over both parentheses together!
(iv) Just moving the cursor around with the arrow keys, one might 
think it impossible to place it inside the parentheses......but place 
it immediately to the right of the closing one and begin typing, and 
the text appears correctly between the parentheses.

Thanks for all the hard work!

--Ray.


----------------------------------------------------------------------

Raymond O'Donnell
Director of Music, Galway Cathedral, Galway, Ireland
rod@iol.ie
----------------------------------------------------------------------




Re: Parentheses

From
"Dave Page"
Date:

> -----Original Message-----
> From: pgadmin-support-owner@postgresql.org
> [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of
> Raymond O'Donnell
> Sent: 29 October 2006 22:50
> To: pgadmin-support@postgresql.org
> Subject: [pgadmin-support] Parentheses
>
> Hi Dave,
>
> Hope this doesn't push your blood pressure any further, but here's a
> small funny I found using Beta 3 (16 October, rev: 5475:5496) - maybe
> it's already been noted and fixed? -

Hi Ray,

No problems with the blood pressure now - it looks like I fixed the
difficult bugs!!

> (i) In the SQL query editor, enter an empty pair of parentheses: ().
> (ii) The matching mechanism kicks in, and highlights them with blue;
> at the same time the cursor jumps one space further to the right,
> leaving the parenthese and the empty space all highlighted in blue.
> (iii) Try moving the cursor to the left using left-arrow: the first
> keypress moves it over the empty space, while the second one moves it
> over both parentheses together!
> (iv) Just moving the cursor around with the arrow keys, one might
> think it impossible to place it inside the parentheses......but place
> it immediately to the right of the closing one and begin typing, and
> the text appears correctly between the parentheses.

Unfortunately this is a quirk of the way the text control redraws
itself. There's not really much we can do about that I'm afraid. On the
plus side, as you've found it's only a drawing issue - cursor control
etc is exactly as it should be.

Regards, Dave.