Bug 4561 - Ctrl+Backspace removes too much text
Summary: Ctrl+Backspace removes too much text
Status: RESOLVED FEATURE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-04-20 11:05 UTC by Simon Lindgren
Modified: 2012-04-20 11:22 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 FEATURE

Description Simon Lindgren 2012-04-20 11:05:42 UTC
Ctrl+Backspace removes too much text when it is performed on an empty line.

It would be better if it only removed text back to the first non whitespace character if the removal spans a line ending. Alternatively, it should only remove one line ending and place the cursor at the correctly indented column on the previous line. I think I would prefer the first alternative though.

Example (cursor marked with $):

Before:
public Identity ForDynamicParameters (Type type)
{
	var i = 0;

	$
}

Actual after:
public Identity ForDynamicParameters (Type type)
{
	var i = $
}

Expected after:
public Identity ForDynamicParameters (Type type)
{
	var i = 0;$
}

Or alternatively:
public Identity ForDynamicParameters (Type type)
{
	var i = 0;
	$
}
Comment 1 Mike Krüger 2012-04-20 11:22:10 UTC
Not this discussion again.

It's defined by gedit, it behaves like we do.

If you want something more in line with the windows behaviour try to set the word break mode to 'SharpDevelop' in the Behavior panel.