Jibble

Author Topic: "Go to line" selects all line - is it normal?  (Read 1148 times)

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
"Go to line" selects all line - is it normal?
« on: 13 Mar 2014, 08:11 »
I didn't pay attention before, but "Go to line" command selects whole line in the script editor. I never saw such behavior in any text editor I used. Is this a right thing to do? If user occasionally presses a key after the command, he/she will delete the line of code.

Gurok

  • Rottwheelers
  • When life hands you lemons, combine them with the mop
    • I can help with AGS tutoring
    • I can help with proof reading
    • I can help with scripting
    • Best Innovation Award Winner 2016, for improving and extending the AGS scripting language
    • Gurok worked on one or more games that won an AGS Award!
    •  
    • Gurok worked on one or more games that was nominated for an AGS Award!
Re: "Go to line" selects all line - is it normal?
« Reply #1 on: 13 Mar 2014, 08:33 »
I actually thought this was strange too. All I did was make the behaviour consistent across types of editors (scripting, dialogue), but it seems a bit counter-intuitive to me. Some editors I've used select the line momentarily so that it flashes and then return the cursor to the start of the line. Perhaps it's a semi-implemented version of that.