This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 119582 - wrong parenthesis place in autocompletion of function with parameters
Summary: wrong parenthesis place in autocompletion of function with parameters
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-21 13:02 UTC by lamyseba
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lamyseba 2007-10-21 13:02:27 UTC
If I type

def redirect_to_index(

automatically netbeans close my parenthesis, and I type in the parameter name. At the end, the cursor is as the place
shown by the |

def redirect_to_index(msg|)

if I hit "return", I think It should be good to have

def redirect_to_index(msg)
    |
end

and not

def redirect_to_index(msg
    |      
end)

I mean, the parenthesis should not go at the end of the block.
Comment 1 lamyseba 2007-10-21 13:05:17 UTC
Note: there is a workaround, using the template feature (hitting tab)
typing "def", then "tab", then "redirect_to_index(msg" (the right parenthesis is written by netbeans), then "return".
Everythings fine in this use-case