Bug 48339 - Auto comment code odd behaviour
Summary: Auto comment code odd behaviour
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.0 M5   Edit
Assignee: Anton Leherbauer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-09 09:38 EST by Thomas Fletcher CLA
Modified: 2010-05-28 16:54 EDT (History)
0 users

See Also:


Attachments
Fix comment auto-indent at document end (17.64 KB, patch)
2006-05-16 08:37 EDT, Anton Leherbauer CLA
angvoz.dev: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fletcher CLA 2003-12-09 09:38:08 EST
The auto-comment blocking:

/*
 *
 *

Doesn't work if you create a new xxx.c file in a project, and put the /* as the 
first characters of the file, type some stuff, then hit enter.  You get a new 
blank line, not a comment continued line.

If you cursor up, add a blank line, then it works.
If you go back, delete any block comment lines (except
the /* line), and delete that blank first line it still
works.

Hm...with further play, you can actually type lots of characters, and multiple
lines into the file, and it will still fail, but as soon
as you delete a character (backspace) or use an arrow key to
go back a character or up a line, it then seems to
start working. 
An odd little buglet.

QNX PR 15570
Comment 1 Kleo Hapitas CLA 2004-07-07 16:33:30 EDT
PR was targeted to the 2.0 release but not resolved, moving target to 2.1
Comment 2 Anton Leherbauer CLA 2006-05-16 08:37:23 EDT
Created attachment 41577 [details]
Fix comment auto-indent at document end

The patch also adds a Junit test for the auto indent strategies.
Comment 3 Anton Leherbauer CLA 2006-07-03 08:58:53 EDT
Released to HEAD.