oracc / nammu

Oracc GUI
GNU General Public License v3.0
12 stars 10 forks source link

arabic_idx is not updated after opening file with Arabic translation #393

Closed raquelalegre closed 5 years ago

raquelalegre commented 5 years ago

One way to replicate it:

  1. Open https://github.com/oracc/nammu/blob/development/resources/test/jcs_48_089_arabic.atf
  2. Edit the file, e.g. add @obverse in a new line at the end.
  3. @obverse should appear syntax highlighted by it doesn't.

This happens because SyntaxHighlighter is only applying colouring from the beginning of the text shown in the viewport to arabic index recorded when the file was first opened, which doesn't include the new characters being written.