Fixes: - Size of terminal when open in external editor on Mac

This commit is contained in:
Eike Ziller
2008-12-02 17:35:55 +01:00
committed by dt
parent 96732d7040
commit 9a801f897d
2 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,11 @@
#!/bin/bash #!/bin/bash
osascript >/dev/null 2>&1 <<EOF osascript >/dev/null 2>&1 <<EOF
tell application "Terminal" tell application "Terminal"
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 activate
do script with command "$@; exit"
end tell end tell
EOF EOF

View File

@@ -345,7 +345,7 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) :
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
m_d->m_externalEditor = m_d->m_core->resourcePath() 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) #elif defined(Q_OS_UNIX)
m_d->m_externalEditor = QLatin1String("xterm -geom %Wx%H+%x+%y -e vi %f +%l +\"normal %c|\""); m_d->m_externalEditor = QLatin1String("xterm -geom %Wx%H+%x+%y -e vi %f +%l +\"normal %c|\"");
#endif #endif