[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] history: remember the commands that were execut
From: |
Marco Diego Aurélio Mesquita |
Subject: |
Re: [Nano-devel] [PATCH] history: remember the commands that were executed during this session |
Date: |
Fri, 15 Sep 2017 17:28:21 -0300 |
On Fri, Sep 15, 2017 at 5:08 PM, Benno Schulenberg <address@hidden> wrote:
> Op 15-09-2017 om 01:06 schreef Marco Diego Aurélio Mesquita:
>>
>> Please, consider the attached patch.
>
>
> execute_command(answer);
> update_history(&execute_history, answer);
> + history_changed = TRUE;
>
> There is no need to set history_changed, because update_history() already
> does that. And thus there is no need to make that variable global:
>
> +bool history_changed = FALSE;
> + /* Have any of the history lists changed? */
>
>
Attached is an updated patch. Please consider it.
0001-Enable-persistence-for-executed-commands.patch
Description: Text Data