insert: print '-- INSERT --' in status line
This commit is contained in:
parent
61b37a6057
commit
2224118de2
|
@ -132,8 +132,11 @@ void print_status(const std::string& status)
|
||||||
|
|
||||||
void do_insert(Window& window)
|
void do_insert(Window& window)
|
||||||
{
|
{
|
||||||
|
print_status("-- INSERT --");
|
||||||
std::string inserted;
|
std::string inserted;
|
||||||
LineAndColumn pos = window.cursor_position();
|
LineAndColumn pos = window.cursor_position();
|
||||||
|
move(pos.line, pos.column);
|
||||||
|
refresh();
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
char c = getch();
|
char c = getch();
|
||||||
|
@ -143,6 +146,7 @@ void do_insert(Window& window)
|
||||||
window.insert(std::string() + c);
|
window.insert(std::string() + c);
|
||||||
draw_window(window);
|
draw_window(window);
|
||||||
}
|
}
|
||||||
|
print_status("");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<Window> current_window;
|
std::shared_ptr<Window> current_window;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user