Re: Edit mode not exiting cleanly on "Back"

Yan Seiner <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
Kalle Olavi Niemitalo wrote:
> Yan Seiner <[email protected]> writes:
>
>   
>> Thanks.  Is this going to be fixed in CVS or should I just try and hack 
>> around it?
>>     
>
> I don't know if any ELinks developer is interested in fixing this
> bug.  It has rather little impact and the fix is not obvious.  If
> you post a patch, it may be accepted to Git (not CVS since 0.11.0).
>   
OK, a simple fix:

in viewer/action.c, turn off insert mode for

case: ACT_MAIN_HISTORY_BACK:
   {
    ses->insert_mode = INSERT_MODE_OFF;
...

More of a hack rather than a fix as it leaves the same problem for all 
the other actions, but it fixes it for this one special case.

--Yan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.