Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: ui/base/ime/win/imm32_manager.cc

Issue 2816683004: Put the caret on the right side of the composition string
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/win/imm32_manager.cc
diff --git a/ui/base/ime/win/imm32_manager.cc b/ui/base/ime/win/imm32_manager.cc
index 8b868ce51ca4c33d911ff3aa9c85aef6c511baf0..562fabfde8376a862bcb64cfecbfcf92eeebd38f 100644
--- a/ui/base/ime/win/imm32_manager.cc
+++ b/ui/base/ime/win/imm32_manager.cc
@@ -317,7 +317,7 @@ void IMM32Manager::GetCompositionInfo(HIMC imm_context,
int cursor = ::ImmGetCompositionString(imm_context, GCS_CURSORPOS, NULL, 0);
composition->selection = gfx::Range(cursor);
} else {
- composition->selection = gfx::Range(0);
+ composition->selection = gfx::Range(length);
}
// Retrieve the clause segmentations and convert them to underlines.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698