From 59ef388128936ca846a96052938a14131067d3d2 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 13 Apr 2025 04:50:27 +0300 Subject: fixed error message for nW and nP if it would move the pointer beyond the document's boundaries --- src/error.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.h b/src/error.h index 3c81257..61bcce6 100644 --- a/src/error.h +++ b/src/error.h @@ -107,8 +107,8 @@ teco_error_move_set(GError **error, const gchar *cmd) static inline void teco_error_words_set(GError **error, const gchar *cmd) { - g_set_error(error, TECO_ERROR, TECO_ERROR_MOVE, - "Not enough words to delete with <%s>", cmd); + g_set_error(error, TECO_ERROR, TECO_ERROR_WORDS, + "Not enough words to perform <%s>", cmd); } static inline void -- cgit v1.2.3