Your message dated Tue, 1 Jul 2008 11:14:59 -0400
with message-id <[EMAIL PROTECTED]>
has caused the report #487120,
regarding vim-runtime: Screen is not redrawn after running external file
handler from netrw plugin
to be marked as having been forwarded to the upstream software
author(s) Charles E Campbell Jr <[EMAIL PROTECTED]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
487120: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487120
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Chip,
As suggested in the topic, after returning to Vim from running gx the
screen display may be garbled from running the external command. I
notice in another part of netrw, there is a comment near the commented
out "redraw!" indicating this was intentionally done to leave the
transfer messages on the screen.
The attached patch, by Teemu Likonen, re-enables only the redraw for the
external filehandler portion of the code which seems like a reasonable
compromise. Your thoughts?
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
>From ea71352db7d134fce778eb148efae37284f40a3a Mon Sep 17 00:00:00 2001
From: Teemu Likonen <[EMAIL PROTECTED]>
Date: Thu, 19 Jun 2008 20:08:11 +0300
Subject: [PATCH] Redraw screen after running external file handler from netrw explorer
The netrw explorer has a possibility to view files with external program
(the "x" key in the explorer). Such external programs are launched with
a command like
exe "silent !kfmclient exec " [...]
Problem is that Vim's screen is not redrawn after the operation. For
example after running kfmclient (KDE's general file handler) Vim's
screen is pretty much messed up. Vim's manual itself warns about the
possibility after :silent command (see :help :silent). Previously netrw
plugin ran :redraw! but for some reason the line in the code was
commented out later. This patch resurrects it.
Signed-off-by: Teemu Likonen <[EMAIL PROTECTED]>
---
runtime/autoload/netrw.vim | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index 6064a65..a22b44e 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -3007,7 +3007,7 @@ fun! netrw#NetrwBrowseX(fname,remote)
let ret= netrwFileHandlers#Invoke(exten,fname)
endif
-" redraw!
+ redraw!
" cleanup: remove temporary file,
" delete current buffer if success with handler,
--
1.5.6.2.g3c3a
signature.asc
Description: Digital signature
--- End Message ---