Reply to message «Patch 7.3.032», sent 23:24:38 21 October 2010, Thursday by Bram Moolenaar:
I see this patch does not actually allow to save `<script>' flag: the following
code echoes 1, while it is considered to echo 0 since `noremap' and ``map
<script>'' significantly differ:
noremap 1 <Nop>
let m1=maparg('1', '', 0, 1)
map <script> 1 <Nop>
let m2=maparg('1', '', 0, 1)
echo m1==m2
And consider adding possibility to use `<script=SID>' argument in *map: it is
the only way to restore <script> mappings outside of a script.
Original message:
> Patch 7.3.032
> Problem: maparg() doesn't return the flags, such as <buffer>, <script>,
> <silent>. These are needed to save and restore a mapping.
> Solution: Improve maparg(). (also by Christian Brabandt)
signature.asc
Description: This is a digitally signed message part.
