richedit: Got rid of ME_GetCharFwd and ME_GetCharBack.
commit1eb0f73ab026a302cdde1fa4fe7a7d7e9cb86711
authorDylan Smith <dylan.ah.smith@gmail.com>
Sat, 7 Feb 2009 18:21:23 +0000 (7 13:21 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 9 Feb 2009 12:05:13 +0000 (9 13:05 +0100)
treea4cf3927a7125674e4d831691692919f9445204d
parent5f15de0690da4b289360da55f740a61fad7ad2cb
richedit: Got rid of ME_GetCharFwd and ME_GetCharBack.

These two functions were being used for simple operations, to get the
first or last character when pre-computing flags for splitting runs.

The call to ME_GetCharBack wasn't even giving the correct result, it
would always return -1 since it is being called with nPos of 0.

This patch simplifies the code by removing the functions and getting the
characters directly from the string.
dlls/riched20/editor.h
dlls/riched20/run.c
dlls/riched20/string.c