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)
|
||||
{
|
||||
print_status("-- INSERT --");
|
||||
std::string inserted;
|
||||
LineAndColumn pos = window.cursor_position();
|
||||
move(pos.line, pos.column);
|
||||
refresh();
|
||||
while(true)
|
||||
{
|
||||
char c = getch();
|
||||
|
@ -143,6 +146,7 @@ void do_insert(Window& window)
|
|||
window.insert(std::string() + c);
|
||||
draw_window(window);
|
||||
}
|
||||
print_status("");
|
||||
}
|
||||
|
||||
std::shared_ptr<Window> current_window;
|
||||
|
|
Loading…
Reference in New Issue
Block a user