bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] extra blank line on input that matches available widt


From: Per Bothner
Subject: Re: [Bug-readline] extra blank line on input that matches available width
Date: Sun, 9 Sep 2018 15:32:12 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 09/09/2018 03:00 PM, Chet Ramey wrote:
On 9/9/18 5:22 PM, Per Bothner wrote:
On 09/09/2018 01:17 PM, Chet Ramey wrote:
The redisplay is just leaving the last visible line alone. In this case,
though, it's blank. Let's see if this patch fixes it.

gcc -c -DHAVE_CONFIG_H -DSHELL   -I. -I/home/bothner/GNU/bash -I../..
-I../../lib  -g -O2 -Wno-parentheses -Wno-format-security display.c
display.c: In function ‘_rl_update_final’:
display.c:2783:7: error: ‘botline_length’ undeclared (first use in this
function); did you mean ‘history_length’?
    if (botline_length > 0 || _rl_last_c_pos > 0)
        ^~~~~~~~~~~~~~
        history_length

Sorry, I should have specified that this is against the current development
source (probably also would work against bash-5.0-alpha/readline-8.0-alpha).

I'm used to the "master" branch of a git repository being "the current 
development
source" but 'git checkout devel' fixed that problem.

Seems to work both in gnome-terminal and DomTerm.  (DomTerm is more challenging
since it explicitly displays continuation markers and used a distinctive color
for "input lines".)  Thanks.
--
        --Per Bothner
address@hidden   http://per.bothner.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]