You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/21 05:15:35 UTC

[incubator-nuttx-apps] branch master updated: system/vi: fix nxstyle warning

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 8edfe8818 system/vi: fix nxstyle warning
8edfe8818 is described below

commit 8edfe88187e9526c6b57cde465dc4d64a7b194b3
Author: chao an <an...@xiaomi.com>
AuthorDate: Sun Nov 20 19:04:17 2022 +0800

    system/vi: fix nxstyle warning
    
    system/vi/vi.c:540:57: error: Multiple data definitions
    system/vi/vi.c:541:54: error: Multiple data definitions
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 system/vi/vi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/system/vi/vi.c b/system/vi/vi.c
index 0b23da4fb..eb89307c9 100644
--- a/system/vi/vi.c
+++ b/system/vi/vi.c
@@ -537,8 +537,8 @@ static const char g_fmtmodified[]   =
                             "No write since last change (add ! to override)";
 static const char g_fmtnotvalid[]   = "Command not valid";
 static const char g_fmtnotcmd[]     = "Not an editor command: %s";
-static const char g_fmtsrcbot[]     = "search hit BOTTOM, continuing at TOP";
-static const char g_fmtsrctop[]     = "search hit TOP, continuing at BOTTOM";
+static const char g_fmtsrcbot[]     = "search hit BOTTOM(continuing at TOP)";
+static const char g_fmtsrctop[]     = "search hit TOP(continuing at BOTTOM)";
 static const char g_fmtinsert[]     = "--INSERT--";
 
 /****************************************************************************