diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-02-18 22:08:45 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-02-18 22:08:45 +0000 |
commit | 212ca9edf9c2be0499cdce39326abba57b088bcd (patch) | |
tree | b14bcc7e91fb33213b349914c477d9c22cd8a25d /Src/Zle/compcore.c | |
parent | 6be3fe2fca7d904ce4c83303a1b23e36ed45a084 (diff) | |
download | zsh-212ca9edf9c2be0499cdce39326abba57b088bcd.tar.gz zsh-212ca9edf9c2be0499cdce39326abba57b088bcd.tar.xz zsh-212ca9edf9c2be0499cdce39326abba57b088bcd.zip |
28772: Update regions in region highlight dynamically
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r-- | Src/Zle/compcore.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index c59815874..fa8b8c11f 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -1395,8 +1395,6 @@ set_comp_sep(void) LinkNode n; /* Save word position */ int owe = we, owb = wb; - /* Save cursor position and line length */ - int ocs, oll; /* * Values of word beginning and end and cursor after subtractions * due to separators. I think these are indexes into zlemetaline, @@ -1481,8 +1479,7 @@ set_comp_sep(void) /* Put the string in the lexer buffer and call the lexer to * * get the words we have to expand. */ - ocs = zlemetacs; - oll = zlemetall; + zle_save_positions(); ol = zlemetaline; addedx = 1; noerrs = 1; @@ -1639,9 +1636,8 @@ set_comp_sep(void) lexrestore(); wb = owb; we = owe; - zlemetacs = ocs; zlemetaline = ol; - zlemetall = oll; + zle_restore_positions(); if (cur < 0 || i < 1) return 1; owb = offs; |