Bug 11924 - Cursor moves to beginning of line, instead of smart indent, on mouse click on empty line.
Summary: Cursor moves to beginning of line, instead of smart indent, on mouse click on...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2013-04-23 20:49 UTC by newbprofi
Modified: 2013-05-10 23:14 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description newbprofi 2013-04-23 20:49:17 UTC
When i click empty line, cursor moves to correct indent only in 90% of cases. And somehow depends on cursor blinking.
When cursor "appear" and i click on new line, then tipically cursor move to corrent indent place.
But when cursor just gonna "disappear" and i click on new line, then cursor move to beginning of line.
Comment 1 Mike Krüger 2013-05-03 09:19:02 UTC
The cursor blinking isn't related to the movement routines. But I think the issue you're describing has already been fixed.
Comment 2 newbprofi 2013-05-10 17:47:57 UTC
@Mike Krüger
Look man, i am programmer. You may say "blinking isn't related to the movement routines" to some users ok? but not to me. Bugs can be related to any line of code, especially in such bugged editor as yours.

I just installed Xamarin Studio 4.0.3 (Alpha) - still the same bug. Just hire normal testers to your team, Ok? And never try to solve/find/simulate bugs yourself. Better try to find another job ok?
Comment 3 newbprofi 2013-05-10 18:04:42 UTC
Hate such clouns, who can't even see most obvious bug, which i was detected after 1st minute of working in text editor. I described this bug in every detail, easily found the same bug in newest version 4.0.3 for 2 seconds.

1) Move your cursor to empty line, inside some function:
void Function()
    |       <---- cursor, with smart indent for current function.


2) Cursor is blinking, if you not blind you will see that.
3) Try to Click mouse to another (bottom) empty line, righter than it should be, when cursor is going to disappear.

void Function()
    |       <---- cursor is here
         o  <---- click here with mouse, when cursor gonna disappear


void Function()
         o  <---- click here with mouse, when cursor gonna disappear
    |       <---- cursor is here

4) Now cursor on the beginning of line (if it's not, then repeat (3)):
void Function()

|       <---- cursor moved to begin of line.

void Function()
    |       <---- here
    |       <---- or here

void Function()
|       <---- here
|       <---- or here
Comment 4 newbprofi 2013-05-10 18:10:09 UTC
Try harder, your product really bugged and sh1tty.
Comment 5 newbprofi 2013-05-10 19:02:34 UTC
Btw, MonoDevelop 2.8.2 doesn't have this bug.
Comment 6 Mike Krüger 2013-05-10 22:03:44 UTC
Screencast: http://screencast.com/t/Y9jeljcuRb
Comment 7 Mike Krüger 2013-05-10 22:11:40 UTC
and btw I know how to model software - caret blinking is unrelated to the movement logic.
The movement logic is in another layer that doesn't know about the rendering.
I've dozens of unit tests for the caret movement. Can you try to provide screencasts - maybe that would help. 

The bug may be related to https://bugzilla.xamarin.com/show_bug.cgi?id=11641 which IS fixed. I'm not responsible for our release process - 4.0.3 is only a bugfix release. We've around 2 months of bugfixes not yet shipped - 4.0.5 will be the next 'big package'.
Comment 8 Mike Krüger 2013-05-10 23:14:43 UTC
I played around a bit with the editor and I think I found the issue:


But it's not related to 'click' or blinking - it's a mouse drag behaviour. 


(The fix is too late for 4.0.5 :( )