We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e515478 commit 3ce48f4Copy full SHA for 3ce48f4
1 file changed
src/editor_app.cpp
@@ -191,7 +191,8 @@ EditorApp::EditorApp(int argc, char* argv[])
191
for (int i = 1; i < argc; i++) {
192
std::string arg = argv[i];
193
if (arg == "--version" || arg == "-v") {
194
- printf("%s\n", get_version().c_str());
+ std::string ver = get_version();
195
+ printf("%s\n", ver.c_str());
196
running_ = false;
197
return;
198
}
@@ -363,8 +364,9 @@ void EditorApp::update_native_status_bar() {
363
364
HWND status_hwnd = (HWND)native_status_bar;
365
366
// Get vim mode
367
+ std::string vim_mode = get_vim_mode_str();
368
wchar_t mode_buf[32];
- swprintf(mode_buf, 32, L"%s", get_vim_mode_str().c_str());
369
+ mbstowcs(mode_buf, vim_mode.c_str(), 32);
370
SendMessage(status_hwnd, SB_SETTEXT, 0, (LPARAM)mode_buf);
371
372
// Get filename
0 commit comments