[jline] Patch delete to actually behave as delete instead of backspace. Include keybindings.properties in do
Ville Skyttä
scop at fedoraproject.org
Sat Oct 15 19:49:54 UTC 2011
commit ddf724021482c77617e2d36b9d92a218a40ed546
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Jul 10 17:47:05 2011 +0300
Patch delete to actually behave as delete instead of backspace. Include keybindings.properties in docs.
jline-0.9.94-keybindings.patch | 12 ++++++++++++
jline.spec | 10 ++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/jline-0.9.94-keybindings.patch b/jline-0.9.94-keybindings.patch
new file mode 100644
index 0000000..6480d5b
--- /dev/null
+++ b/jline-0.9.94-keybindings.patch
@@ -0,0 +1,12 @@
+diff -up jline-0.9.94/src/src/main/resources/jline/keybindings.properties~ jline-0.9.94/src/src/main/resources/jline/keybindings.properties
+--- jline-0.9.94/src/src/main/resources/jline/keybindings.properties~ 2007-11-12 19:35:12.000000000 +0200
++++ jline-0.9.94/src/src/main/resources/jline/keybindings.properties 2011-07-10 17:06:47.377240063 +0300
+@@ -57,6 +57,6 @@
+ # CTRL-W: delete the word directly before the cursor
+ 23: DELETE_PREV_WORD
+
+-# DELETE, CTRL-?: delete the previous character
++# DELETE, CTRL-?: delete the next character
+ # 127 is the ASCII code for delete
+-127: DELETE_PREV_CHAR
++127: DELETE_NEXT_CHAR
diff --git a/jline.spec b/jline.spec
index b2b3eb6..0a0f307 100644
--- a/jline.spec
+++ b/jline.spec
@@ -30,13 +30,14 @@
Name: jline
Version: 0.9.94
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Java library for reading and editing user input in console applications
License: BSD
URL: http://jline.sourceforge.net/
Group: Development/Libraries
Source0: http://download.sourceforge.net/sourceforge/jline/jline-%{version}.zip
Source1: CatalogManager.properties
+Patch0: %{name}-0.9.94-keybindings.patch
Requires: bash
# for /bin/stty
@@ -83,6 +84,7 @@ Javadoc for %{name}.
%prep
%setup -q
+%patch0 -p1
# Make sure upstream hasn't sneaked in any jars we don't know about
find -name '*.class' -exec rm -f '{}' \;
@@ -145,7 +147,7 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%{_javadir}/%{name}.jar
%{_mavendepmapfragdir}/*
%{_mavenpomdir}/*
-%doc LICENSE.txt
+%doc LICENSE.txt src/src/main/resources/jline/keybindings.properties
%files demo
%defattr(-,root,root,-)
@@ -156,6 +158,10 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%{_javadocdir}/*
%changelog
+* Sun Jul 10 2011 Ville Skyttä <ville.skytta at iki.fi> - 0.9.94-4
+- Patch delete to actually behave as delete instead of backspace.
+- Include keybindings.properties in docs.
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.94-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list