Skip to content

Commit 255c269

Browse files
committed
TODO Fold
1 parent 0a55f0f commit 255c269

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

src/gui/runtime/plugin/nvim_gui_shim.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ function GuiShowContextMenu() range
216216
call rpcnotify(0, 'Gui', 'ShowContextMenu')
217217
endfunction
218218

219-
<<<<<<< HEAD
220219
" Notify Gui of any cursor movement, used by GuiScrollBar
221220
function s:GuiCursorMovedUpdateScrollBar()
222221
let l:minLineVisible = line('w0')

src/gui/shell.cpp

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,11 @@ bool Shell::setGuiFont(const QString& fdesc, bool force, bool updateOption)
167167
// unwanted recursion. Only update this option for ':GuiFont', and dialog calls.
168168
if (isGuiDialogRequest || updateOption) {
169169
m_nvim->api0()->vim_set_option("guifont", fontDesc());
170-
171-
bool ok = setShellFont(attrs.at(0), pointSize, weight, italic, force);
172-
if (ok && m_attached) {
173-
m_cmdlineWidget.setFont(font());
174-
resizeNeovim(size());
175-
m_nvim->api0()->vim_set_var("GuiFont", fontDesc());
176170
}
177171

172+
// Update ext_cmdline font to match ShellWidget
173+
m_cmdlineWidget.setFont(font());
174+
178175
return true;
179176
}
180177

@@ -566,12 +563,7 @@ void Shell::handleRedraw(const QByteArray& name, const QVariantList& opargs)
566563
handleGridCursorGoto(opargs);
567564
} else if (name == "grid_scroll") {
568565
handleGridScroll(opargs);
569-
} else if (name == "hl_group_set") {
570566
}
571-
else {
572-
qDebug() << "Received unknown redraw notification" << name << opargs;
573-
}
574-
575567
}
576568

577569
void Shell::handlePopupMenuShow(const QVariantList& opargs)
@@ -899,8 +891,6 @@ void Shell::handleExtGuiOption(const QString& name, const QVariant& value)
899891
m_nvim->api2()->nvim_ui_set_option("ext_popupmenu", value.toBool());
900892
} else if (name == "Cmdline") {
901893
m_nvim->api2()->nvim_ui_set_option("ext_cmdline", value.toBool());
902-
} else {
903-
qDebug() << "Unknown GUI Option" << name << value;
904894
}
905895
}
906896

@@ -927,8 +917,6 @@ void Shell::handleSetOption(const QString& name, const QVariant& value)
927917
} else if (name == "termguicolors") {
928918
} else if (name == "ext_cmdline") {
929919
} else if (name == "ext_linegrid") {
930-
} else {
931-
qDebug() << "Received unknown option" << name << value;
932920
}
933921
}
934922

src/gui/shell.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
#include <QList>
1212
#include <QMap>
1313
#include <QMenu>
14-
<<<<<<< HEAD
15-
16-
=======
1714
#include "cmdline/extcmdlinewidget.h"
18-
>>>>>>> 819b127... Add support of extcmdline
1915
#include "neovimconnector.h"
2016
#include "shellwidget/highlight.h"
2117
#include "shellwidget/shellwidget.h"
@@ -154,11 +150,10 @@ protected slots:
154150
virtual void handleGridCursorGoto(const QVariantList& opargs);
155151
virtual void handleGridScroll(const QVariantList& opargs);
156152

157-
<<<<<<< HEAD
158153
// GuiScrollBar Slots
159154
virtual void handleCursorMovedUpdateScrollBar(const QVariantList& opargs) noexcept;
160155
virtual void handleSetScrollBarVisible(const QVariantList& opargs) noexcept;
161-
=======
156+
162157
// External/Gui commandline handling'ext_cmdline'
163158
virtual void handleCmdlineShow(const QVariantList& opargs);
164159
virtual void handleCmdlinePos(const QVariantList& opargs);
@@ -167,7 +162,6 @@ protected slots:
167162
virtual void handleCmdlineBlockShow(const QVariantList& opargs);
168163
virtual void handleCmdlineBlockAppend(const QVariantList& opargs);
169164
virtual void handleCmdlineBlockHide();
170-
>>>>>>> 819b127... Add support of extcmdline
171165

172166
void neovimMouseEvent(QMouseEvent *ev);
173167
virtual void mousePressEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
@@ -222,15 +216,12 @@ private slots:
222216
bool m_neovimBusy{ false };
223217
ShellOptions m_options;
224218
PopupMenu m_pum{ this };
225-
<<<<<<< HEAD
226219
bool m_mouseEnabled{ true };
227220

228221
/// GuiScrollBar last known position: used to compute scroll line delta.
229222
int m_lastScrollBarPosition{ 0 };
230-
=======
223+
231224
Cmdline::ExtCmdlineWidget m_cmdlineWidget{ this };
232-
bool m_mouseEnabled;
233-
>>>>>>> 819b127... Add support of extcmdline
234225
};
235226

236227
class ShellRequestHandler: public QObject, public MsgpackRequestHandler

0 commit comments

Comments
 (0)