Skip to content

Commit

Permalink
wreadln: hide cursor before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 6, 2024
1 parent 2216cd8 commit 57f1d6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wreadln.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "ui/Point.hxx"
#include "ui/Window.hxx"
#include "util/LocaleString.hxx"
#include "util/ScopeExit.hxx"

#include <string>

Expand Down Expand Up @@ -269,6 +270,7 @@ _wreadln(const Window window,

/* make sure the cursor is visible */
curs_set(1);
AtScopeExit() { curs_set(0); };
/* retrieve y and x0 position */
wr.point = window.GetCursor();
/* check the x1 value */
Expand Down

0 comments on commit 57f1d6d

Please sign in to comment.