Beispiel #1
0
 public void AllChars3()
 {
     foreach (var cur in RegisterNameUtil.RegisterNameChars)
     {
         Assert.True(RegisterNameUtil.CharToRegister(cur).IsSome());
     }
 }
Beispiel #2
0
 public void Unnamed()
 {
     Assert.Equal('"', RegisterName.Unnamed.Char.Value);
     Assert.Equal(RegisterName.Unnamed, RegisterNameUtil.CharToRegister('"').Value);
 }
Beispiel #3
0
        public static Register GetRegister(this IVimBuffer buffer, char c)
        {
            var name = RegisterNameUtil.CharToRegister(c).Value;

            return(buffer.RegisterMap.GetRegister(name));
        }
Beispiel #4
0
        public static Register GetRegister(this IRegisterMap map, char c)
        {
            var name = RegisterNameUtil.CharToRegister(c).Value;

            return(map.GetRegister(name));
        }