summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-20 21:59:49 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-20 21:59:49 +0000
commitb3656edcb96bd36277db157baec80cb5e7a6f534 (patch)
tree196eed24afb857886081bbdc690e385715c59cb9 /src/ui.c
parent9b2200acd6bd572eea00ea89eeb3b2c0764c8942 (diff)
downloadvim-git-b3656edcb96bd36277db157baec80cb5e7a6f534.tar.gz
updated for version 7.0230v7.0230
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui.c b/src/ui.c
index 608e59af0..fb93b905d 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -139,7 +139,7 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
#endif
#ifdef FEAT_PROFILE
- if (do_profiling && wtime != 0)
+ if (do_profiling == PROF_YES && wtime != 0)
prof_inchar_enter();
#endif
@@ -199,7 +199,7 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
theend:
#endif
#ifdef FEAT_PROFILE
- if (do_profiling && wtime != 0)
+ if (do_profiling == PROF_YES && wtime != 0)
prof_inchar_exit();
#endif
return retval;
@@ -473,7 +473,8 @@ clip_own_selection(cbd)
* selected area. There is no specific redraw command for this,
* just redraw all windows on the current buffer. */
if (cbd->owned
- && get_real_state() == VISUAL
+ && (get_real_state() == VISUAL
+ || get_real_state() == SELECTMODE)
&& clip_isautosel()
&& hl_attr(HLF_V) != hl_attr(HLF_VNC))
redraw_curbuf_later(INVERTED_ALL);
@@ -503,7 +504,8 @@ clip_lose_selection(cbd)
* area. There is no specific redraw command for this, just redraw all
* windows on the current buffer. */
if (was_owned
- && get_real_state() == VISUAL
+ && (get_real_state() == VISUAL
+ || get_real_state() == SELECTMODE)
&& clip_isautosel()
&& hl_attr(HLF_V) != hl_attr(HLF_VNC))
{