summaryrefslogtreecommitdiffstats
path: root/scintilla/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2011-07-12 14:45:31 +0000
committerXhmikosR <xhmikosr@users.sourceforge.net>2011-07-12 14:45:31 +0000
commit4ec5dfaa408ca6bc08615b7112f9c2ed00e7a271 (patch)
tree7379ce5df521391aa2415b2a99151e255766a94e /scintilla/src/ScintillaBase.cxx
parent61c639e3dbb9070523e09c58e4cd7b4b5bf974c1 (diff)
downloadnotepad2-mod-4ec5dfaa408ca6bc08615b7112f9c2ed00e7a271.zip
notepad2-mod-4ec5dfaa408ca6bc08615b7112f9c2ed00e7a271.tar.gz
notepad2-mod-4ec5dfaa408ca6bc08615b7112f9c2ed00e7a271.tar.bz2
update scintilla
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@555 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/src/ScintillaBase.cxx')
-rw-r--r--scintilla/src/ScintillaBase.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/scintilla/src/ScintillaBase.cxx b/scintilla/src/ScintillaBase.cxx
index 4cec34a..8afa6e7 100644
--- a/scintilla/src/ScintillaBase.cxx
+++ b/scintilla/src/ScintillaBase.cxx
@@ -205,7 +205,8 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
if (ac.chooseSingle && (listType == 0)) {
if (list && !strchr(list, ac.GetSeparator())) {
const char *typeSep = strchr(list, ac.GetTypesep());
- int lenInsert = static_cast<int>((typeSep) ? (typeSep-list) : strlen(list));
+ int lenInsert = typeSep ?
+ static_cast<int>(typeSep-list) : static_cast<int>(strlen(list));
if (ac.ignoreCase) {
SetEmptySelection(sel.MainCaret() - lenEntered);
pdoc->DeleteChars(sel.MainCaret(), lenEntered);