Bug 448911 - Typing "#region<SPC>foo" results in "region<SPC>fooon"
Summary: Typing "#region<SPC>foo" results in "region<SPC>fooon"
Status: RESOLVED FIXED
: 433271 463334 (view as bug list)
Alias: None
Product: MonoDevelop
Classification: Mono
Component: texteditor (show other bugs)
Version: SVN
Hardware: Other Other
: P5 - None : Normal
Target Milestone: 2.0 Beta 2
Assignee: Michael Hutchinson
QA Contact: MD Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-25 20:37 UTC by Michael Trausch
Modified: 2009-03-21 06:54 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Trausch 2008-11-25 20:37:55 UTC
The summary says it all.

Also, when typing it and desiring to have it indented, it outdents a bit.

This happens a couple of different ways, as well.  For example:

“#region<TAB>” yields “regionon”, and one level outdent.
“#endregion<ENTER>” yields “endregionon”, and one level outdent.

If you type “#re<ENTER><SPC>REGION NAME” it works, but I have not retrained my fingers to have quite as much assistance as they have, yet.  ;-)
Comment 1 Michael Hutchinson 2008-11-26 02:24:35 UTC
This is /almost/ a duplicate of bug 429265, in that code completion and the smart indenter are fighting.

The indenter should be suppressed while the completion window is open, and triggered when the window closes.
Comment 2 Michael Hutchinson 2008-11-26 02:25:51 UTC
FWIW, #region<ESC> works too.
Comment 3 Michael Trausch 2008-11-26 05:53:15 UTC
Michael,

Thanks, I hadn't thought to try that.  :)
Comment 4 Michael Hutchinson 2008-12-03 19:07:36 UTC
*** Bug 433271 has been marked as a duplicate of this bug. ***
Comment 5 Michael Hutchinson 2009-01-04 23:52:45 UTC
*** Bug 463334 has been marked as a duplicate of this bug. ***
Comment 6 Michael Hutchinson 2009-02-05 22:27:28 UTC
Fixed in r125948.
Comment 7 Sanford Armstrong 2009-02-05 22:36:47 UTC
Sorry, still broken in r125948.  Typing "#region " produces "region on".
Comment 8 Sanford Armstrong 2009-02-05 22:38:05 UTC
Using Smart indentation mode, btw. Let me know if I can provide any more info.
Comment 9 Michael Hutchinson 2009-02-06 00:35:09 UTC
Yeah, the smart indenter is antisocial.

I've committed a better fix.
Comment 10 Michael Hutchinson 2009-02-06 00:35:37 UTC
Closing.
Comment 11 Michael Trausch 2009-03-21 06:54:39 UTC
Thanks for the fix, it works wonderfully!