1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/net-im/ysm/files/patch-src-YSM_Prompt.c
Sergey Matveychuk c8baef401e Add two patches:
- Fix iconv() arguments to make conversions correct.
- Add an application name for readline. It allows to set options for readline
  from user config files*. And enable history.

* example ~/.inputrc:
$if ysm
set editing-mode emacs
set horizontal-scroll-mode off
$endif

PR:		ports/119447
Submitted by:	Eugene Grosbein <eugen at kuzbass.ru>
2008-01-12 19:46:54 +00:00

14 lines
405 B
C

--- src/YSM_Prompt.c.orig 2008-01-12 22:36:41.000000000 +0300
+++ src/YSM_Prompt.c 2008-01-12 22:37:50.000000000 +0300
@@ -564,6 +564,10 @@
YSM_ConsoleRestore();
/* Set default readline values */
+ rl_readline_name = "ysm";
+ using_history();
+ unstifle_history();
+
rl_variable_bind("editing-mode", "emacs");
rl_bind_key('\t', YSM_ConsoleTabHook); /* Tab hook for emacs */
/* ysm hot keys */