Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#365 Fix for truncated line number column in large files

Next_release
closed
nobody
UI (101)
5
2012-05-27
2012-03-20
dakotahawkins
No

While working with very large (1,000,000+ lines) .xml files in 5.9.8, I noticed that the line-number column was truncated at 4 characters. This happens because scintillaEditView.h's updateLineNumberWidth() was using the displayed lines to calculate width. The attached copy of scintillaEditView.h contains a small change to updateLineNumberWidth() that instead bases the width on the file's line count (SCI_GETLINECOUNT.)

It'd be great to have this included (or improved upon and then included) in the next point release.

Thanks!

Dakota

Discussion

  • dakotahawkins
    dakotahawkins
    2012-03-20

    Contains modified updateLineNumberWidth() function

     
    Attachments
  • dakotahawkins
    dakotahawkins
    2012-03-20

    svn diff output, apologies for not including this originally

     
  • dakotahawkins
    dakotahawkins
    2012-03-20

    • assigned_to: nobody --> donho
    • priority: 5 --> 7
     
  • Don HO
    Don HO
    2012-05-27

    • assigned_to: donho --> nobody
    • priority: 7 --> 5
    • status: open --> closed
     
  • Don HO
    Don HO
    2012-05-27

    Test in v6.1.2 - the column line works perfectly.

    Don