Applied, thanks

On Fri, Jun 11, 2021 at 2:22 PM Ron Yorston <[email protected]> wrote:
>
> The default tabstop value should be set during early start up,
> not reset for each new file.
>
> Signed-off-by: Ron Yorston <[email protected]>
> ---
>  editors/vi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/editors/vi.c b/editors/vi.c
> index d85cdd98d..717d7c29e 100644
> --- a/editors/vi.c
> +++ b/editors/vi.c
> @@ -535,6 +535,7 @@ struct globals {
>         last_modified_count = -1; \
>         /* "" but has space for 2 chars: */ \
>         IF_FEATURE_VI_SEARCH(last_search_pattern = xzalloc(2);) \
> +       tabstop = 8; \
>  } while (0)
>
>  #if ENABLE_FEATURE_VI_CRASHME
> @@ -4620,7 +4621,6 @@ static void edit_file(char *fn)
>
>         cmd_mode = 0;           // 0=command  1=insert  2='R'eplace
>         cmdcnt = 0;
> -       tabstop = 8;
>         offset = 0;                     // no horizontal offset
>         c = '\0';
>  #if ENABLE_FEATURE_VI_DOT_CMD
> --
> 2.31.1
>
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to