fix: Some merge issues
This commit is contained in:
parent
96a588bd86
commit
b3a0ebe7b6
@ -37,8 +37,8 @@ include("${IMHEX_BASE_FOLDER}/cmake/build_helpers.cmake")
|
|||||||
# Setup project
|
# Setup project
|
||||||
loadVersion(IMHEX_VERSION IMHEX_VERSION_PLAIN)
|
loadVersion(IMHEX_VERSION IMHEX_VERSION_PLAIN)
|
||||||
setVariableInParent(IMHEX_VERSION ${IMHEX_VERSION})
|
setVariableInParent(IMHEX_VERSION ${IMHEX_VERSION})
|
||||||
configureCMake()
|
|
||||||
|
|
||||||
|
configureCMake()
|
||||||
project(imhex
|
project(imhex
|
||||||
LANGUAGES C CXX
|
LANGUAGES C CXX
|
||||||
VERSION ${IMHEX_VERSION_PLAIN}
|
VERSION ${IMHEX_VERSION_PLAIN}
|
||||||
|
@ -307,9 +307,6 @@ endfunction()
|
|||||||
macro(configureCMake)
|
macro(configureCMake)
|
||||||
message(STATUS "Configuring ImHex v${IMHEX_VERSION}")
|
message(STATUS "Configuring ImHex v${IMHEX_VERSION}")
|
||||||
|
|
||||||
# Enable C and C++ languages
|
|
||||||
enable_language(C CXX)
|
|
||||||
|
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "Enable position independent code for all targets" FORCE)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "Enable position independent code for all targets" FORCE)
|
||||||
|
|
||||||
# Configure use of recommended build tools
|
# Configure use of recommended build tools
|
||||||
|
@ -392,14 +392,6 @@ TextEditor::Coordinates TextEditor::FindWordEnd(const Coordinates &aFrom) const
|
|||||||
while (cindex < (line.size()) && !isWordChar(line[cindex].mChar))
|
while (cindex < (line.size()) && !isWordChar(line[cindex].mChar))
|
||||||
++cindex;
|
++cindex;
|
||||||
|
|
||||||
if (prevspace != !!isspace(c)) {
|
|
||||||
if (isspace(c))
|
|
||||||
while (cindex < (int)line.size() && isspace(line[cindex].mChar))
|
|
||||||
++cindex;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
cindex += d;
|
|
||||||
|
|
||||||
if (line[cindex-1].mChar == '\"')
|
if (line[cindex-1].mChar == '\"')
|
||||||
--cindex;
|
--cindex;
|
||||||
return Coordinates(aFrom.mLine, GetCharacterColumn(aFrom.mLine, cindex));
|
return Coordinates(aFrom.mLine, GetCharacterColumn(aFrom.mLine, cindex));
|
||||||
|
Loading…
Reference in New Issue
Block a user