add "w" command to write the file

This commit is contained in:
Josh Holtrop 2017-01-27 20:53:21 -05:00
parent 2ae1d72d6a
commit 6779890ca9

View File

@ -410,9 +410,6 @@ void Window::handle_keyval(uint32_t keyval)
case Keymod::CTRL + 'u':
m_focused_buffer_pane->scroll_window_up(ScrollMode::HALF_SCREEN);
break;
case Keymod::CTRL + 'w':
m_focused_buffer_pane->write_file();
break;
case Keymod::CTRL + 'y':
m_focused_buffer_pane->scroll_window_up(ScrollMode::ONE_LINE);
break;
@ -578,7 +575,7 @@ void Window::handle_command(const EncodedString & command)
{
if (cp[0] == "w")
{
/* TODO */
m_focused_buffer_pane->write_file();
}
}
}