Menu

#152 latex mode word double-click

9.0rc2
closed
nobody
None
Bug
major
2018-04-29
2018-03-24
No

In latex mode, if you double click on delta in

\delta_n

everything is selected, including the underscore n. The correct would be to have selected only \delta. (Indeed, underscore cannot be be said to be part of any notion of word in tex; it is an operator.)

I have experimented with the definition of TeXmodeVars(wordBreak), but suspect that it may be a core problem. For example, the arrow keys, option-left and option-right, correctly understand that underscore is not part of a word.

Related

Tickets: #152

Discussion

  • Bernard Desgraupes

    This is fixed now.

    Two remarks:

    • still extension of selection using option-shift-right captures \delta_n instead of just \delta
    • be aware, when playing with mode-specific wordBreak preferences, that the string is cached by the core for every document, so if you change it you need to close the file and reopen it : the string is read and cached when the document is created

    I'm aware that both points would have to be improved in the future, oh well...

    Changes committed to the repository (rev. 1421). The core must be rebuilt.

     

    Last edit: Bernard Desgraupes 2018-03-28
  • Bernard Desgraupes

    • status: open --> fixed
     
  • Bernard Desgraupes

    • status: fixed --> closed
    • Version: 9.0rc1 --> 9.0rc2
     

Log in to post a comment.