commit 158388c5a64fc05ace34a6e30de089d3b7d17008
parent 3e45c9c5cfd2e7dacf0734e10f845e4dd83d22cd
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Thu, 16 Jun 2016 20:40:09 +0200
justify: enable cursor display also for the first keystroke afterward
This fixes https://savannah.gnu.org/bugs/?48246.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -2487,11 +2487,6 @@ void do_justify(bool full_justify)
edit_refresh();
- /* If constant cursor position display is on, make sure the current
- * cursor position will be properly displayed on the statusbar. */
- if (ISSET(CONST_UPDATE))
- do_cursorpos(TRUE);
-
/* Display the shortcut list with UnJustify. */
uncutfunc->desc = unjust_tag;
display_main_list();
@@ -2509,6 +2504,11 @@ void do_justify(bool full_justify)
} while (kbinput == KEY_WINCH);
#endif
+ /* If needed, unset the cursor-position suppression flag, so the cursor
+ * position /will/ be displayed upon a return to the main loop. */
+ if (ISSET(CONST_UPDATE))
+ do_cursorpos(TRUE);
+
func = func_from_key(&kbinput);
if (func == do_uncut_text