Menu

#1722 Documentation bug: Tk_PointToChar

obsolete: 8.5a1
closed-fixed
9
2009-04-03
2004-06-17
Joe English
No

The description of Tk_PointToChar in TextLayout(3)
seems to indicate that the return value is always a
valid character index (except in the special case of an
empty string). It can actually return an index *one
past* the end of the string (even when the string is
nonempty). Manpage should be clarified to reflect this.

Discussion

  • Don Porter

    Don Porter - 2007-10-31
    • priority: 5 --> 9
     
  • Donal K. Fellows

    • assigned_to: hobbs --> jenglish
     
  • Donal K. Fellows

    Fixed in HEAD. Can't be bothered to backport such a small docfix.

     
  • Donal K. Fellows

    • assigned_to: jenglish --> dkf
    • status: open --> closed-fixed