[Fixed] [Beta] Wrong highlight when editing an event handler

Here is a little bug, maybe regression, with the editor.

The snapshot below shows the editor after double clicking on a link on a form. There are two little problems:

  • The caret is at the end of the function code
  • Only a few lines before and after the function are grayed out

I might be wrong and I have no way to verify, but I think it used to put the caret at the beginning of the function and it used to gray out all the lines before and all the lines after.

Thanks for reporting. It looks like it’s only greying out the visible area.

But I don’t think the being at the end of the function is necessary a bug. If you’re going to start typing more code that’s probably where you’d want the cursor. But we’ll look at the design decision there.

1 Like

Here is my two (unsolicited) cents:

If the function doesn’t exist, then you double click to start typing, and the start and the end of the function are pretty close.

If the function exists already and you are exploring the code, then you double click to read what’s already there and you want to be at the beginning of the function.

1 Like

That should now be fixed

1 Like