Bug 4342 - unindent does not refresh if using keyboard shortcut with caret at beginning of the line and no selection
Summary: unindent does not refresh if using keyboard shortcut with caret at beginning ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-04-09 11:56 UTC by Csaba Halász
Modified: 2012-04-10 13:46 UTC (History)
1 user (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Csaba Halász 2012-04-09 11:56:04 UTC
How to reproduce:
1) position caret at the beginning of any line with an indent (ie. leftmost column, not where the first character is)
2) invoke the "unindent selection" function via keyboard shortcut

Observe that nothing seems to happen. In reality, the operation has been performed but the screen hasn't been refreshed. If you now leave the line (eg. by cursor up/down) you will see the line update to the expected state. If you unindent enough times to remove all indentation, you will see the first letter appear in the first column, but the rest of the line will be unchanged.

If any of the following is true, the command works as expected:
* there is text selected
* the menu is used
* caret isn't in the first column
Comment 1 Mike Krüger 2012-04-10 13:46:28 UTC
fixed.