From ccb6271a4c2a4acecca2b2a4b9e3d1c30da01b9b Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sat, 10 Oct 2009 09:38:09 +0000 Subject: [PATCH] bugs --- index.cgi | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/index.cgi b/index.cgi index d5a86cb..762e162 100755 --- a/index.cgi +++ b/index.cgi @@ -43,7 +43,7 @@ function header { # Format a file for viewing function do_print { - if [ -f "$1" ]; then + if [ -f "./$1" ]; then input="$1" elif [ -f "db/$1" ]; then input="db/$1" @@ -67,7 +67,7 @@ function do_print { # has a real terminal, not that we also have to set # term=xterm-256color in vimrc HOME=/home/andy \ - screen -D -m ex -Z -u vimrc \ + screen -D -m ex -nXZ -i NONE -u vimrc \ '+2d|'$trim \ '+%s/ //g' \ '+TOhtml' \ @@ -99,8 +99,9 @@ function do_upload { # Default index page function do_help { filetypes=$( - ls /usr/share/vim/vim{72,files}/syntax/ /home/andy/.vim/after/syntax/ | - sed -n 's/.vim$//p' | sort | uniq + ls /usr/share/vim/vim*/syntax/ /home/andy/.vim/after/syntax/ | + sed -n '/^\(syntax\|manual\|synload\|2html\|colortest\|hitest\).vim$/d; s/.vim$//p' | + sort | uniq ) uploads=$(ls -t db | head -n 5 | sed "s!^!$url!") @@ -169,6 +170,12 @@ cat - <See :help modeline for more information +

BUGS

+ +

SOURCE