This (bug?) has been happening for several nightly release cycles now, but it’s driving me a little nuts at this point.
Say I have the following Ruby on Rails code:
def inbox_action?
params:action] == 'inbox'
end
- I want to quickly select the text “inbox_action?” for copy + paste elsewhere, so
- I double click on inbox_action to quickly select that word, and then
- I drag to the right to get the ‘?’ as well, but
- Sadly, the newline character is now selected as well and I can’t shake it off with the mouse, no matter what I do. So to fix,
- I let go of the mouse button and I use shift + left arrow to unselect the newline character.
Note: This behavior is the same if in (1) I had double clicked “def” and dragged to the right just the same as in (3).
This behavior only presents when I start my selection with a double click (which almost always do because it’s quicker and requires less precision) and only if the line ends in a question mark or a period or a quote mark or close-paren (so far as I have found, there may be other terminators for which this happens. I know that it does not happen for greater-than signs or regular words for example).
Side question: Is there anyway to make question marks be part of my initial selection in the first place? Lots of my method names include question marks at the end.
Thanks!
Paul