applying fix for:
authorpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 20 Jul 2005 17:39:52 +0000 (17:39 +0000)
committerpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 20 Jul 2005 17:39:52 +0000 (17:39 +0000)
    0000118: vi join command does not mark file as modified for certain lines.

git-svn-id: svn://busybox.net/trunk/busybox@10873 69ca8d6d-28ef-0310-b511-8ec308f3f277

editors/vi.c

index eb0aa33..6f739a7 100644 (file)
@@ -3517,6 +3517,7 @@ key_cmd_mode:
                dot_end();              // move to NL
                if (dot < end - 1) {    // make sure not last char in text[]
                        *dot++ = ' ';   // replace NL with space
+                       file_modified = TRUE;
                        while (isblnk(*dot)) {  // delete leading WS
                                dot_delete();
                        }