mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
83b214e31c
Previously if you bind `le:binding[insert][Ctrl-L] = { put * }`, there is a small defect that is readily observed by pressing Ctrl-L repeatedly: the prompt will never go to the bottom of terminal, but always kept one line higher than the bottom. This is because invoking a closure from the editor causes a full refresh, which in turn causes an erase to be done near the end of writer.refresh, which, in the old algorithm, always adds a superfluous newline. By doing the erase at the very beginning, we avoid the superfluous newline. Now pressing Ctrl-L repeatedly will push the prompt to the bottom. |
||
---|---|---|
.. | ||
async_reader_test.go | ||
async_reader.go | ||
bind.go | ||
builtins.go | ||
ceildiv_test.go | ||
ceildiv.go | ||
completers.go | ||
completion.go | ||
editor.go | ||
history.go | ||
historyListing.go | ||
isexternal.go | ||
key.go | ||
ls_colors.go | ||
minmax.go | ||
module.go | ||
navigation.go | ||
nodeutil.go | ||
reader.go | ||
style.go | ||
stylists.go | ||
token.go | ||
wcwidth_test.go | ||
wcwidth.go | ||
writer.go |