# \[BUG-12519\] caret position in Gateway Events editor

**URL:** <https://forum.inductiveautomation.com/t/bug-12519-caret-position-in-gateway-events-editor/22073>\
**Category:** Ignition Early Access\
**Created:** [January 23, 2019, 7:19pm UTC](https://forum.inductiveautomation.com/t/bug-12519-caret-position-in-gateway-events-editor/22073 "2019-01-23T19:19:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [January 23, 2019, 7:19pm UTC](https://forum.inductiveautomation.com/t/bug-12519-caret-position-in-gateway-events-editor/22073/1 "2019-01-23T19:19:45Z")

</div>

In the popup editor for gateway event scripts (and also other script editors), the caret position does not match the input but is displayed in a wrong position. The position offest depends on the typed letters. An ‘a’ e.g. is ok, a ‘s’ moves the caret display position too far to the right.  
In the example screenshot, the write position is behind the last s, there is no space.

 ![script_editor](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7ca596235f7ab70a01d9169c11945c9b0f1bcd49.jpeg)

Version: 8.0.0-beta0 (b2019011802)  
Client OS: Windows 10

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 23, 2019, 7:30pm UTC](https://forum.inductiveautomation.com/t/bug-12519-caret-position-in-gateway-events-editor/22073/2 "2019-01-23T19:30:29Z")

</div>

I have this bug too with the last nightly beta.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [January 30, 2019, 5:58pm UTC](https://forum.inductiveautomation.com/t/bug-12519-caret-position-in-gateway-events-editor/22073/3 "2019-01-30T17:58:44Z")

</div>

I was able to reproduce this and have created a ticket in our backlog. Thank you for reporting it.

Garth

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [February 13, 2019, 6:13pm UTC](https://forum.inductiveautomation.com/t/bug-12519-caret-position-in-gateway-events-editor/22073/4 "2019-02-13T18:13:21Z")

</div>

This should be fixed in the latest nightly deployment of 8.0. You will need remove **.ignition/cache/resources/runtimes** to force the changes made to the JRE to be downloaded.

Garth
