https://github.com/vim/vim/pull/14460
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra commented on this pull request.
In runtime/compiler/rime_deployer.vim:
> +
+" Android Termux
+let s:prefix = getenv('PREFIX')
+if s:prefix == v:null
+ let s:prefix = '/usr'
+endif
+" Android, NixOS, GNU/Linux, BSD
+for s:shared_data_dir in ['/sdcard/rime-data', '/run/current-system/sw/share/rime-data', '/usr/local/share/rime-data', s:prefix . '/share/rime-data']
+ if isdirectory(s:shared_data_dir)
+ break
+ endif
+endfor
+execute 'CompilerSet makeprg=rime_deployer\ --build\ %:p:h\' s:shared_data_dir
+
+let &cpoptions = s:save_cpoptions
+unlet s:save_cpoptions
unlet s:prefix s:shared_data_dir
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Freed-Wu commented on this pull request.
In runtime/compiler/rime_deployer.vim:
> +
+" Android Termux
+let s:prefix = getenv('PREFIX')
+if s:prefix == v:null
+ let s:prefix = '/usr'
+endif
+" Android, NixOS, GNU/Linux, BSD
+for s:shared_data_dir in ['/sdcard/rime-data', '/run/current-system/sw/share/rime-data', '/usr/local/share/rime-data', s:prefix . '/share/rime-data']
+ if isdirectory(s:shared_data_dir)
+ break
+ endif
+endfor
+execute 'CompilerSet makeprg=rime_deployer\ --build\ %:p:h\' s:shared_data_dir
+
+let &cpoptions = s:save_cpoptions
+unlet s:save_cpoptions
Fixed
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Freed-Wu pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@Konfekt commented on this pull request.
In runtime/compiler/rime_deployer.vim:
> +
+let s:save_cpoptions = &cpoptions
+set cpoptions&vim
+
+" Android Termux
+let s:prefix = getenv('PREFIX')
+if s:prefix == v:null
+ let s:prefix = '/usr'
+endif
+" Android, NixOS, GNU/Linux, BSD
+for s:shared_data_dir in ['/sdcard/rime-data', '/run/current-system/sw/share/rime-data', '/usr/local/share/rime-data', s:prefix . '/share/rime-data']
+ if isdirectory(s:shared_data_dir)
+ break
+ endif
+endfor
+execute 'CompilerSet makeprg=rime_deployer\ --build\ %:p:h\' s:shared_data_dir
Likely %:p:h:S is more robust
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Freed-Wu commented on this pull request.
In runtime/compiler/rime_deployer.vim:
> +
+let s:save_cpoptions = &cpoptions
+set cpoptions&vim
+
+" Android Termux
+let s:prefix = getenv('PREFIX')
+if s:prefix == v:null
+ let s:prefix = '/usr'
+endif
+" Android, NixOS, GNU/Linux, BSD
+for s:shared_data_dir in ['/sdcard/rime-data', '/run/current-system/sw/share/rime-data', '/usr/local/share/rime-data', s:prefix . '/share/rime-data']
+ if isdirectory(s:shared_data_dir)
+ break
+ endif
+endfor
+execute 'CompilerSet makeprg=rime_deployer\ --build\ %:p:h\' s:shared_data_dir
Done.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Freed-Wu pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@Freed-Wu pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Rebased.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Merged #14460 into master.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()