From e4fb70ebec80edcd17f0e00823780e4798a3fb1a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 16 Oct 2019 20:19:43 +1100 Subject: Replace ModeChange hooks by ModePush and ModePop Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545 --- rc/filetype/python.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc/filetype/python.kak') diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index 91dcb1ef..b88f5343 100644 --- a/rc/filetype/python.kak +++ b/rc/filetype/python.kak @@ -18,7 +18,7 @@ hook global WinSetOption filetype=python %{ hook window InsertChar \n -group python-indent python-indent-on-new-line # cleanup trailing whitespaces on current line insert end - hook window ModeChange insert:.* -group python-trim-indent %{ try %{ execute-keys -draft \; s ^\h+$ d } } + hook window ModeChange pop:insert:.* -group python-trim-indent %{ try %{ execute-keys -draft \; s ^\h+$ d } } hook -once -always window WinSetOption filetype=.* %{ remove-hooks window python-.+ } } -- cgit v1.2.3