#1757 CRLF handling in SCI_COUNTCHARACTERS & SCI_POSITIONRELATIVE

Bug
closed-fixed
scintilla (285)
5
2015-09-15
2015-08-28
Timo Harter
No

Both these messages are documented as working on "whole characters". It is not mentioned whether CRLF is counted as one or two whole characters.

SCI_COUNTCHARACTERS counts a CRLF sequence as one character
SCI_POSITIONRELATIVE counts a CRLF sequence as two characters

This is problematic because the two messages otherwise complement each other. At the very least, this behavior should be clearly documented.

I use release 3.5.0, but from the sources it seems to be the same in the latest version.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2015-08-31
     
  • Neil Hodgson

    Neil Hodgson - 2015-08-31

    SCI_COUNTCHARACTERS comes from [#1133].

     

    Related

    Bugs: #1133

  • Neil Hodgson

    Neil Hodgson - 2015-09-04
    • labels: --> scintilla
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2015-09-15
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks