File: 0023-Fix-use-cpo-save.patch

package info (click to toggle)
cmigemo 1%3A1.2%2Bgh0.20220623-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,700 kB
  • sloc: ansic: 2,617; cs: 188; makefile: 173; sh: 107; cpp: 67; perl: 59; csh: 49; javascript: 20
file content (43 lines) | stat: -rw-r--r-- 973 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 66eb26d1b074c045e5407589dc2b05b00a96476f Mon Sep 17 00:00:00 2001
From: haya14busa <hayabusa1419@gmail.com>
Date: Sun, 15 Dec 2013 12:07:51 +0900
Subject: [PATCH 23/36] Fix: use-cpo-save

aboid side effect
---
 tools/migemo.vim | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tools/migemo.vim b/tools/migemo.vim
index 62e09d9..9c6eb77 100644
--- a/tools/migemo.vim
+++ b/tools/migemo.vim
@@ -5,7 +5,7 @@
 "
 " Maintainer:  MURAOKA Taro <koron@tka.att.ne.jp>
 " Modified:    Yasuhiro Matsumoto <mattn_jp@hotmail.com>
-" Last Change: 11-Dec-2013.
+" Last Change: 15-Dec-2013.
 
 " Japanese Description:
 
@@ -13,6 +13,9 @@ if exists('plugin_migemo_disable')
   finish
 endif
 
+let s:save_cpo = &cpo
+set cpo&vim
+
 function! s:SearchDict2(name)
   let path = $VIM . ',' . &runtimepath
   let dict = globpath(path, "dict/".a:name)
@@ -98,3 +101,6 @@ else
     endif
   endfunction
 endif
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
-- 
2.39.2