File: remove_escape_key_from_filedialog.diff

package info (click to toggle)
vim-latexsuite 1%3A1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,336 kB
  • ctags: 793
  • sloc: xml: 5,179; python: 928; makefile: 92; perl: 59; sh: 14
file content (25 lines) | stat: -rw-r--r-- 979 bytes parent folder | download | duplicates (3)
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
Description: Remove escape key from filebrowser
 Some shells send escape-key-sequences for the arrow keys. So the filebrowser
 should not be closed when using arrow keys.
Author: Johann Felix Soden <johfel@debian.org>
Bug-Debian: http://bugs.debian.org/444394

--- a/plugin/filebrowser.vim
+++ b/plugin/filebrowser.vim
@@ -147,7 +147,6 @@
 function! <SID>FB_SetMaps()
 	nnoremap <buffer> <silent> q :bdelete<cr>
 	nnoremap <buffer> <silent> C :call FB_DisplayFiles(getcwd())<CR>
-	nnoremap <buffer> <silent> <esc> :bdelete<cr>
 	nnoremap <buffer> <silent> <CR> :call <SID>FB_EditEntry()<CR>
 	nnoremap <buffer> <silent> ? :call <SID>FB_ToggleHelp()<CR>
 
@@ -197,7 +196,7 @@
 		let txt = 
 			\  "\" <cr>: on file, choose the file and quit\n"
 			\ ."\"       on dir, enter directory\n"
-			\ ."\" q/<esc>: quit without choosing\n"
+			\ ."\" q: quit without choosing\n"
 			\ ."\" C: change directory to getcwd()\n"
 			\ ."\" ?: toggle help verbosity\n"
 			\ ."\"= ".getcwd()