зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1217275 Fix missing \n in IMMHandler::HandleDocumentFeed(), it was replaced to empty string accidentally r=m_kato
This commit is contained in:
Родитель
2e2f24455a
Коммит
4adbaf87c5
|
@ -1745,7 +1745,7 @@ IMMHandler::HandleDocumentFeed(nsWindow* aWindow,
|
||||||
|
|
||||||
// Get the focused paragraph, we decide that it starts from the previous CRLF
|
// Get the focused paragraph, we decide that it starts from the previous CRLF
|
||||||
// (or start of the editor) to the next one (or the end of the editor).
|
// (or start of the editor) to the next one (or the end of the editor).
|
||||||
int32_t paragraphStart = str.RFind("", false, targetOffset, -1) + 1;
|
int32_t paragraphStart = str.RFind("\n", false, targetOffset, -1) + 1;
|
||||||
int32_t paragraphEnd =
|
int32_t paragraphEnd =
|
||||||
str.Find("\r", false, targetOffset + targetLength, -1);
|
str.Find("\r", false, targetOffset + targetLength, -1);
|
||||||
if (paragraphEnd < 0) {
|
if (paragraphEnd < 0) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче