Skip to content

Commit 8bb6380

Browse files
committed
Revert "GUI: On attach show v:errmsg"
This reverts commit badc90e. Because the printing of v:errmsg was interfering with plugins (see #502).
1 parent 6ffdd6d commit 8bb6380

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/gui/shell.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,6 @@ void Shell::setAttached(bool attached)
167167
m_deferredOpen.clear(); //Neovim may change state. Clear to prevent reopening.
168168
}
169169

170-
// Show v:errmsg if available
171-
auto api1 = m_nvim->api1();
172-
auto req = api1->nvim_get_vvar("errmsg");
173-
connect(req, &MsgpackRequest::finished, [api1](quint32 m, quint64 f, const QVariant& r) {
174-
auto err = r.toString();
175-
if (!err.isEmpty()) {
176-
api1->nvim_err_writeln(err.toLatin1());
177-
}
178-
});
179170
}
180171
emit neovimAttached(attached);
181172
update();

0 commit comments

Comments
 (0)