diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-01-08 21:39:26 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-01-09 21:33:39 +0000 |
commit | cfd91eac0732da8ece012ca4ab051d928a85c9dd (patch) | |
tree | 68ef32e118a060de0c7685c848e0267e64cf5137 /Src/Zle/textobjects.c | |
parent | 6291d38848680b84252799d9e33110bca842efe8 (diff) | |
download | zsh-cfd91eac0732da8ece012ca4ab051d928a85c9dd.tar.gz zsh-cfd91eac0732da8ece012ca4ab051d928a85c9dd.tar.xz zsh-cfd91eac0732da8ece012ca4ab051d928a85c9dd.zip |
Rearrange context saving.
Variables are now associated with the module that declares them, being initialised and saved/restored there. However, as many variables are used for communication between modules, many of them are set in multiple places, so the assignment is ambiguous.
Diffstat (limited to 'Src/Zle/textobjects.c')
-rw-r--r-- | Src/Zle/textobjects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/textobjects.c b/Src/Zle/textobjects.c index 37d2c0ad9..9b3277a97 100644 --- a/Src/Zle/textobjects.c +++ b/Src/Zle/textobjects.c @@ -241,7 +241,7 @@ selectargument(UNUSED(char **args)) addedx = 0; noerrs = 1; - lexsave(); + zcontext_save(); lexflags = LEXFLAGS_ACTIVE; linein = zlegetline(&ll, &cs); zlemetall = ll; @@ -277,7 +277,7 @@ selectargument(UNUSED(char **args)) inpop(); errflag &= ~ERRFLAG_ERROR; noerrs = ne; - lexrestore(); + zcontext_restore(); zlemetacs = ocs; wb = owb; we = owe; |