Go to bug ID
Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
Reporter ?
Guest
Product/Version ?
Crimson Editor / Version 3.72 Beta 241
Status ?
Confirmed
Severity ?
Enhancement
Duplicate Of ?
- none -
Summary ?
cursor always at first position after new line
Report Time ?
November 19, 2007 11:42:03 AM
Assignment ?
- none -
Resolution ?
Open
Priority ?
Normal
Dependencies ?
- none -


Votes
For: 0 (0%)
Against: 0 (0%)
Total: 0

November 19, 2007 11:42:03 AM Guest
I have noticed that without autoident option marked, when working not in the first column of text the cursor jumps to the first column. I do not know if it is a real bug, however it disturbs. See behaviour of other text editors like notepad2. When I write some C code there, I do not have to use autoident, and next line cursor appear exactly in the same column. Example:
{
spaceSOME_TEXTenter
<- cursor lands on the first column, not just where space is.
}
That means every time I write block of C++ code, I need to make spaces.
Would be nice to fix it :)

November 19, 2007 02:49:37 PM Pvt_Ryan
Can you explain please why you cannot leave autoindedent on if it solves the issue? or does it "break" something else?

January 18, 2008 04:18:50 AM Phil
Confirmed.

I never noticed that because I use auto-indent. Thank you for reporting.

March 11, 2008 05:07:02 PM LFLFM
Ok, so I guess what ya really want is a semi-auto indent, like:
If its indented, maintain, but don't add any more indentation
eg:

int main(void)
{
<--- auto-indent is off, so the carret moves here
CallMyFunction(56); //note I put spaces before my function call
|<-- carret now moves here, just maintaining the current indent

Ok, honestly, I think that's valid, but maybe it should be a 3rd option, eg. radiobuttons:
( ) auto-indent OFF, full return
( ) auto-indent OFF, keep whitespace
(x) Auto-indent ON

March 11, 2008 05:11:36 PM LFLFM
hehe nice, now I see that the site doesnt keep indent... perhaps this would be a nice little enhancement to the bug reporting tool

March 22, 2008 07:41:33 PM Ankit Singla
I don't really regard this as a problem. For me, this is expected behavior. If you don't want to actually indent but do want to keep the current indentation, then turn on auto-indent and remove the $INDENTATIONON and $INDENTATIONOFF variables from the respective spc file.

March 25, 2008 10:12:02 AM Pvt_Ryan
Actually thats quite unintuitive, a better "fix" Ankit would be to have an option in the prefs to "Ignore Indentation Variables in spec file". Would be trivial to incorporate.

March 25, 2008 12:31:49 PM Ankit Singla
Ahh!!! options!

I see your point, though. I agree that mine is an unintuitive solution, but I do wish there was a better way. Actually having a separate setting specifying how much auto-indent we want is also a little bit broken. How about this, or would this be bad, too:

Auto-indent OFF: Keep current indent depending on file type...if syntax type is (and we'll need to discuss this separately) Default or Plain Text (maybe we should do something like if syntax type has a comment character or if the syntax type has indentation characters or add a new item to syntax, which I think is the best solution but also the most work, called KEEPWHITESPACE or CODE or something)
Auto-indent ON: Current behavior