Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
110824b2
Commit
110824b2
authored
Dec 02, 2008
by
Eike Ziller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes: - Size of terminal when open in external editor on Mac
parent
96732d70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
bin/runInTerminal.command
bin/runInTerminal.command
+6
-2
src/plugins/coreplugin/editormanager/editormanager.cpp
src/plugins/coreplugin/editormanager/editormanager.cpp
+1
-1
No files found.
bin/runInTerminal.command
View file @
110824b2
#!/bin/bash
osascript
>
/dev/null 2>&1
<<
EOF
tell application "Terminal"
activate
do script with command "
$@
; exit"
do script "
$1
$2
+
$3
+
\"
normal
$4
|
\"
; exit"
set currentTab to the result
set number of columns of currentTab to
$5
set number of rows of currentTab to
$6
set position of windows whose tabs contains currentTab to {
$7
,
$8
}
activate
end tell
EOF
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
110824b2
...
...
@@ -345,7 +345,7 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) :
#ifdef Q_OS_MAC
m_d
->
m_externalEditor
=
m_d
->
m_core
->
resourcePath
()
+
QLatin1String
(
"/runInTerminal.command vi %f
+
%l"
);
+
QLatin1String
(
"/runInTerminal.command vi %f %l
%c %W %H %x %y
"
);
#elif defined(Q_OS_UNIX)
m_d
->
m_externalEditor
=
QLatin1String
(
"xterm -geom %Wx%H+%x+%y -e vi %f +%l +
\"
normal %c|
\"
"
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment