richedit: Actually store end of line string for end paragraph runs.
authorDylan Smith <dylan.ah.smith@gmail.com>
Wed, 28 Jan 2009 06:34:56 +0000 (01:34 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 28 Jan 2009 11:11:36 +0000 (12:11 +0100)
commit5d74f5838266e81a969f97cf389f6369c5bc46c6
tree74f4189f5ca7a0afc1d3635b7b2aea27d8067f48
parenteb877e442122ecf3c5f8178916cc91ff7998f0ca
richedit: Actually store end of line string for end paragraph runs.

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.
13 files changed:
dlls/riched20/caret.c
dlls/riched20/editor.c
dlls/riched20/editor.h
dlls/riched20/editstr.h
dlls/riched20/list.c
dlls/riched20/paint.c
dlls/riched20/para.c
dlls/riched20/run.c
dlls/riched20/string.c
dlls/riched20/table.c
dlls/riched20/undo.c
dlls/riched20/writer.c
dlls/riched32/tests/editor.c