Fixing prompt to selection move on C-/ (was 2nd line instead of 1st) + making 1-dist.sh robust regardless automake location.

This commit is contained in:
Martin Dvorak 2014-05-07 05:31:53 +02:00
parent e06f93d01d
commit c71530db1c
2 changed files with 8 additions and 4 deletions

10
dist/1-dist.sh vendored
View file

@ -8,9 +8,13 @@ automake --force-missing --add-missing
autoconf
rm -rvf autom*te.cache
cp -vf /usr/share/automake-1.11/depcomp .
cp -vf /usr/share/automake-1.11/install-sh .
cp -vf /usr/share/automake-1.11/missing .
if [ -d /usr/share/automake-1.11 ]
then
cp -vf /usr/share/automake-1.11/depcomp .
cp -vf /usr/share/automake-1.11/install-sh .
cp -vf /usr/share/automake-1.11/missing .
fi
cd dist

View file

@ -781,7 +781,7 @@ void loop_to_select(Hstr *hstr)
hstr_next_view(hstr);
result=hstr_print_selection(maxHistoryItems, pattern, hstr);
print_history_label(hstr);
selectionCursorPosition=0;
selectionCursorPosition=SELECTION_CURSOR_IN_PROMPT;
if(strlen(pattern)<(width-basex-1)) {
print_prefix(pattern, y, basex);
cursorX=getcurx(stdscr);