1. 13 Aug, 2009 1 commit
  2. 12 Aug, 2009 2 commits
    • Dylan Smith's avatar
      richedit: Created functions to move between runs and track paragraphs. · 32dcd3bb
      Dylan Smith authored
      Plenty of places in the code find following or preceding runs, then
      afterwards find the paragraph from the run.  This is inefficient because
      the same linked list is used for both runs and paragraphs, so changes in
      paragraphs can be detected while returning the next or previous run.
      32dcd3bb
    • Dylan Smith's avatar
      richedit: Added function to get selection cursors in order. · 46b84aed
      Dylan Smith authored
      Previously the only convenient way to get the start and end of the
      selection was through offsets, which eventually need to get converted
      back into items in the linked list storing the text.  The new function
      will help with eliminating these inefficiencies.
      46b84aed
  3. 27 Apr, 2009 1 commit
  4. 24 Apr, 2009 1 commit
  5. 09 Feb, 2009 1 commit
    • Dylan Smith's avatar
      richedit: Removed ME_StrLen and ME_StrVLen field access functions. · 5f15de06
      Dylan Smith authored
      These functions were probably previously needed because of some wierd
      special handling of backspace characters, but currently there is no
      reason why the nLen field can't be accessed directly.
      
      Having to functions that just access the string length field just causes
      slightly more effort for someone to look at the code, because they need
      to enter the function to find out what it actually is doing.
      5f15de06
  6. 06 Feb, 2009 1 commit
    • Dylan Smith's avatar
      richedit: Get the paragraph with ME_RunOfsFromCharOfs. · 12ca50db
      Dylan Smith authored
      The ME_RunOfsFromCharOfs function finds the paragraph before finding the
      run and offset within the run, so the function may as well be able to
      return this paragraph to the caller.  Many callers to the function
      instead find the paragraph from the run, which ends up unnecessarily
      traversing a linked list of runs within the paragraph.
      12ca50db
  7. 28 Jan, 2009 1 commit
    • Dylan Smith's avatar
      richedit: Actually store end of line string for end paragraph runs. · 5d74f583
      Dylan Smith authored
      Previously a count of the carraige returns and line feeds were stored
      for end of paragraph runs, and a paragraph sign was stored as the actual
      string.  This was causing many special cases where the length of the
      run needed to be determined differently if the run was or wasn't an
      end of paragraph run.
      
      There wasn't any use for storing the paragraph sign unless some drawing
      code gets commented out to allow the end paragraphs to be shown,
      therefore I changed the code to store the actual string that gets
      retrieved by WM_GETTEXT.
      5d74f583
  8. 27 Jan, 2009 1 commit
    • Dylan Smith's avatar
      richedit: Removed redundant ME_FindItemAtOffset using ME_RunOfsFromCharOfs. · 61308257
      Dylan Smith authored
      The two functions ME_FindItemAtOffset and ME_RunOfsFromCharOfs were almost
      identically used, since ME_FindItemAtOffset was always used to find a run.
      The only difference was how they returned the offset within the run for an
      end of paragraph run.
      
      For ME_FindItemAtOffset it would return the next run if it was in between \r
      and \n. ME_RunOfsFromCharOfs would instead return an nOffset of 0 for end
      paragraph runs.  This subtle difference introduced bugs, so I decided to
      avoid having special case in this function when creating this patch, and
      instead let the caller handle this case.
      61308257
  9. 06 Nov, 2008 1 commit
  10. 01 Oct, 2008 4 commits
  11. 18 Aug, 2008 3 commits
  12. 05 Aug, 2008 1 commit
  13. 09 Jul, 2008 1 commit
  14. 29 Apr, 2008 1 commit
  15. 17 Mar, 2008 1 commit
  16. 04 Feb, 2008 1 commit
  17. 17 Sep, 2007 1 commit
  18. 17 Aug, 2007 1 commit
  19. 29 Nov, 2006 1 commit
  20. 14 Oct, 2006 1 commit
  21. 23 May, 2006 1 commit
  22. 10 May, 2006 1 commit
  23. 05 Feb, 2006 2 commits
  24. 04 Feb, 2006 1 commit
  25. 11 Oct, 2005 1 commit
  26. 12 Sep, 2005 1 commit
  27. 11 Aug, 2005 1 commit
  28. 26 Jul, 2005 1 commit
  29. 22 Jul, 2005 1 commit
  30. 21 Jul, 2005 2 commits
  31. 05 Jul, 2005 2 commits