diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2014-01-04 21:45:08 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2014-01-04 21:47:07 +0100 |
commit | 554d6843969358a80664ce375b3dee541d3f24bc (patch) | |
tree | 586321c24b717917875b691ef6ef4558edf3a385 /src | |
parent | c8c182b409ab7059e073e8bc3aab620c8419806b (diff) |
window: read_key: move cursor back to position it was at before helper function call
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index 2b79b04e..86e466eb 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -48,10 +48,13 @@ const char *base; int read_key(FILE *) { + size_t x; int result; do { + x = w->getX(); w->runGetStringHelper(rl_line_buffer); + w->goToXY(x, start_y); w->refresh(); result = w->readKey(); } |