view runtime/tutor/Makefile @ 34596:5a8340e044f4 v9.1.0190

patch 9.1.0190: complete_info() returns wrong order of items Commit: https://github.com/vim/vim/commit/8950bf7f8b85c1287d4e696965d88091fcc60594 Author: Girish Palya <girishji@gmail.com> Date: Wed Mar 20 20:07:29 2024 +0100 patch 9.1.0190: complete_info() returns wrong order of items Problem: complete_info() returns wrong order of items (after v9.0.2018) Solution: Revert Patch v9.0.2018 (Girish Palya) bug fix: complete_info() gives wrong results 1) complete_info() reverses list of items during <c-p> 2) 'selected' item index is wrong during <c-p> 3) number of items returnd can be wrong Solution: - Decouple 'cp_number' from 'selected' index since they need not be correlated - Do not iterate the list backwards - Add targeted tests Regression introduced by https://github.com/vim/vim/commit/69fb5afb3bc9da24c2fb0eafb0027ba9c6502fc2 Following are unnecessary commits to patch problems from above: https://github.com/vim/vim/commit/fef66301665027f1801a18d796f74584666f41ef https://github.com/vim/vim/commit/daef8c74375141974d61b85199b383017644978c All the tests from above commits are retained though. fixes: #14204 closes: #14241 Signed-off-by: Girish Palya <girishji@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 20 Mar 2024 20:15:03 +0100
parents 72aee06c1d78
children 88ce4d4157ee
line wrap: on
line source

# Makefile for the Vim tutor.
#
# The Japanese tutor exists in three encodings.  Use the UTF-8 version as the
# original and create the others with conversion.
#
# Similarly for Russian and Korean

# Common components
include Make_all.mak

.PHONY: all clean

all: $(CONVERTED)

tutor.utf-8: tutor
	iconv -f ISO-8859-1 -t UTF-8 $< >$@

tutor.bar: tutor.bar.utf-8
	iconv -f UTF-8 -t ISO-8859-1 $< >$@

tutor.ca.utf-8: tutor.ca
	iconv -f ISO-8859-1 -t UTF-8 $< >$@

tutor.eo: tutor.eo.utf-8
	iconv -f UTF-8 -t ISO-8859-3 $< >$@

tutor.de.utf-8: tutor.de
	iconv -f ISO-8859-1 -t UTF-8 $< >$@

tutor.el: tutor.el.utf-8
	iconv -f UTF-8 -t ISO-8859-7 $< >$@

tutor.el.cp737: tutor.el.utf-8
	iconv -f UTF-8 -t CP737 $< >$@

tutor.es: tutor.es.utf-8
	iconv -f UTF-8 -t ISO-8859-1 $< >$@

tutor.fr.utf-8: tutor.fr
	iconv -f ISO-8859-1 -t UTF-8 $< >$@

tutor.hu: tutor.hu.utf-8
	iconv -f UTF-8 -t ISO-8859-2 $< >$@

tutor.hu.cp1250: tutor.hu.utf-8
	iconv -f UTF-8 -t CP1250 $< >$@

tutor.it.utf-8: tutor.it
	iconv -f ISO-8859-1 -t UTF-8 $< >$@

tutor.hr: tutor.hr.utf-8
	iconv -f UTF-8 -t ISO-8859-2 $< >$@

tutor.hr.cp1250: tutor.hr.utf-8
	iconv -f UTF-8 -t CP1250 $< >$@

tutor.ja.sjis: tutor.ja.utf-8
	iconv -f UTF-8 -t CP932 $< >$@

tutor.ja.euc: tutor.ja.utf-8
	iconv -f UTF-8 -t EUC-JP $< >$@

tutor.ko.euc: tutor.ko.utf-8
	iconv -f UTF-8 -t EUC-KR $< >$@

tutor.nl: tutor.nl.utf-8
	iconv -f UTF-8 -t ISO-8859-1 $< >$@

tutor.no.utf-8: tutor.no
	iconv -f ISO-8859-1 -t UTF-8 $< >$@

# nb is an alias for no
tutor.nb: tutor.no
	cp $< $@

tutor.nb.utf-8: tutor.no.utf-8
	cp $< $@

tutor.ru: tutor.ru.utf-8
	iconv -f UTF-8 -t KOI8-R $< >$@

tutor.ru.cp1251: tutor.ru.utf-8
	iconv -f UTF-8 -t CP1251 $< >$@

tutor.tr.iso9: tutor.tr.utf-8
	iconv -f UTF-8 -t ISO-8859-9 $< >$@

tutor.sv.utf-8: tutor.sv
	iconv -f ISO-8859-1 -t UTF-8 $< >$@

tutor.zh.utf-8: tutor.zh.big5
	iconv -f BIG-5 -t UTF-8 $< >$@

clean:
	for G in $(CONVERTED); do if [ -f $$G ]; then rm -f $$G; fi; done