diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1557,11 +1557,13 @@ void mode_key_normal(Editor *e, u32 c) { } break; case 'u': - txt_hist_back(eb->txt, &eb->cur); + if (!txt_hist_back(eb->txt, &eb->cur)) + e->msg = S("no previous state"); break; case 'U': - txt_hist_fwd(eb->txt, &eb->cur); + if (!txt_hist_fwd(eb->txt, &eb->cur)) + e->msg = S("no next state"); break; default: |
