Start implementing "edit in vi" for mac.

This commit is contained in:
con
2010-12-10 17:04:24 +01:00
parent a22a30cf60
commit 3ecced27a3
11 changed files with 95 additions and 20 deletions

View File

@@ -216,8 +216,8 @@ void TextEditorPlugin::updateSearchResultsFont(const FontSettings &settings)
void TextEditorPlugin::updateVariable(const QString &variable)
{
static const char * const kCurrentSelectionVar = "CurrentSelection";
if (variable == QLatin1String(kCurrentSelectionVar)) {
static const char * const kCurrentDocumentSelection= "CurrentDocument:Selection";
if (variable == QLatin1String(kCurrentDocumentSelection)) {
QString selectedText;
Core::IEditor *iface = Core::EditorManager::instance()->currentEditor();
ITextEditor *editor = qobject_cast<ITextEditor *>(iface);