Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
c6850606
Commit
c6850606
authored
10 years ago
by
Owen Arnold
Browse files
Options
Downloads
Plain Diff
Merge pull request #110 from mantidproject/bugfix/10654_osx_script_editor_eol
Use unix-style line endings in script editor on OSX.
parents
f0341602
acb7e2c6
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/MantidQt/MantidWidgets/src/ScriptEditor.cpp
+8
-0
8 additions, 0 deletions
Code/Mantid/MantidQt/MantidWidgets/src/ScriptEditor.cpp
with
8 additions
and
0 deletions
Code/Mantid/MantidQt/MantidWidgets/src/ScriptEditor.cpp
+
8
−
0
View file @
c6850606
...
...
@@ -146,6 +146,14 @@ ScriptEditor::ScriptEditor(QWidget *parent, QsciLexer *codelexer, const QString
m_currentExecLine
(
0
),
m_completer
(
NULL
),
m_previousKey
(
0
),
m_findDialog
(
new
FindReplaceDialog
(
this
)),
m_settingsGroup
(
settingsGroup
)
{
// Older versions of QScintilla still use just CR as the line ending, which is pre-OSX.
// New versions just use unix-style for everything but Windows.
#if defined(Q_OS_WIN)
setEolMode
(
EolWindows
);
#else
setEolMode
(
EolUnix
);
#endif
//Syntax highlighting and code completion
setLexer
(
codelexer
);
readSettings
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment