Block select placing cursor at wrong location
Reported by somethingkindawierd | September 20th, 2010 @ 10:03 PM
Problem: after indenting a block of text the cursor position is incorrect.
I have a section of php code that looks like this:
...
private function Init() {
$R = YottaBox::$yAction['_YOTTA_']['REQUEST'];
if(isset($R['creationDate']) && isset($R['minROI'])) {
$minClicks = (isset($R['minClicks'])) ? $R['minClicks'] : 0;
$minImpressions = (isset($R['minImpressions'])) ? $R['minImpressions'] : 0;
$minCost = (isset($R['minCost'])) ? $R['minCost'] : 100;
$this->keywordList = $this->discoverStaleKeywords(
$R['creationDate'],
$R['minROI'],
$minClicks,
$minImpressions,
$minCost);
$this->adGroupList = $this->groupKeywordsByAdGroup();
return TRUE;
}
return FALSE;
}
/**
* Discover all keywords with an ROI below the acceptable level
*
$creationDate
$roi
$minClicks
$minImpressions
$minCost
*/
private function discoverStaleKeywords(
$creationDate,
$roi,
$minClicks = 0,
$minImpressions = 0,
$minCost = 0) {
$result = array();
$query = "
SELECT
KW.`Id` AS Keyword_Id
...
I was trying to make some phpdoc comments, so I copied the parameters from the function call to the comment area of the function definition. Then I was going to block-select the front of the text, tab it over to the correct place, and format accordingly.
Here's the section I was going to indent:
$creationDate
$roi
$minClicks
$minImpressions
$minCost
Attachment Selection_001.png shows the data after copying it, before selecting it.
Attachment Selection_002.png shows the selection I made.
I then pressed the tab key to indent the text
Attachment Selection_003.png shows the position of the cursor after pressing the tab key.
Comments and changes to this ticket
-
somethingkindawierd September 20th, 2010 @ 10:04 PM
Hmmm...only one of the attachments was sent the first time. I'll try to attach the others here...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A programmer's text editor for Gnome.