Author Topic: Bug in Script Editor related to Dynamic Word Wrap  (Read 4507 times)

Offline zvrastil

  • PixInsight Addict
  • ***
  • Posts: 179
    • Astrophotography
Bug in Script Editor related to Dynamic Word Wrap
« on: 2011 October 18 12:51:03 »
There's an irritating bug in Script Editor, when View / Dynamic Word Wrap is switched on. Consider you're editing a long line, so it's wrapped to for example 3 lines in the editor. You're typing at the end of the line and it just wrapped to fourth line. Now, start deleting text with the backspace. Once the line is shortened so it again takes only 3 lines, cursor jumps to the beginning of the line and you're suddenly deleting previous paragraph.

regards, Zbynek

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Bug in Script Editor related to Dynamic Word Wrap
« Reply #1 on: 2011 October 18 12:54:09 »
Does anyone really edit scripts in the provided editor? I prefer to use the same editor as much as possible.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Bug in Script Editor related to Dynamic Word Wrap
« Reply #2 on: 2011 October 18 13:00:20 »
I can confirm this bug. I discovered it in 1.6.9, but unfortunately forgot to fix it in 1.7.0. It is now fixed in the next version 1.7.2, which will be released really soon.

Sorry for the inconvenience. Workaround: don't use Backspace in paragraphs spreading across multiple editor lines with the  dynamic word wrap feature enabled; use Delete which does not have this bug.

Quote
Does anyone really edit scripts in the provided editor?

Yes, I use it all the time to edit JavaScript scripts and PIDoc files in PixInsight.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline zvrastil

  • PixInsight Addict
  • ***
  • Posts: 179
    • Astrophotography
Re: Bug in Script Editor related to Dynamic Word Wrap
« Reply #3 on: 2011 October 18 13:45:42 »
Thanks Juan.

Does anyone really edit scripts in the provided editor?

I do as well. For script, I like the possibility to compile & run, for PiDoc, it gives me syntax highlight I'd have to manually add to other editor.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Bug in Script Editor related to Dynamic Word Wrap
« Reply #4 on: 2011 October 18 15:06:51 »
While we release a new version, there is a good workaround to this bug:

- Open the Script Editor window.

- From the editor's menu, select Edit > Preferences.

- On the Script Editor Preferences window, uncheck the 'Backspace unindents' option.

- Click the OK button.

With that option disabled, the backspace bug no longer happens. Hope this helps.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/