File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 148
148
(cond
149
149
(replace-all-in-line
150
150
(lem :line-start start)
151
- (lem :line-end end)
151
+ (unless (lem :start-line-p end)
152
+ (lem :line-end end))
152
153
(rep start end nil ))
153
154
(t
154
155
(lem :move-point (lem :current-point) start)
Original file line number Diff line number Diff line change 25
25
(testing " 'g' flag"
26
26
(with-vi-buffer (#?" pen pineapple <apple pen\n ap[p]>le juice\n pineapple cake\n " )
27
27
(ex-cmd " '<,'>s/apple/grape/g" )
28
- (ok (text= #?" pen pinegrape grape pen\n grape juice\n pineapple cake\n " ))))))
28
+ (ok (text= #?" pen pinegrape grape pen\n grape juice\n pineapple cake\n " )))
29
+
30
+ (with-vi-buffer (#?" apple apple\n [a]pple apple\n apple apple\n apple apple\n " )
31
+ (cmd " Vj" )
32
+ (ex-cmd " '<,'>s/apple/grape/g" )
33
+ (ok (text= #?" apple apple\n grape grape\n grape grape\n apple apple\n " )))
34
+
35
+ (with-vi-buffer (#?" apple apple\n apple apple\n [a]pple apple\n apple apple\n " )
36
+ (cmd " Vk" )
37
+ (ex-cmd " '<,'>s/apple/grape/g" )
38
+ (ok (text= #?" apple apple\n grape grape\n grape grape\n apple apple\n " ))))))
You can’t perform that action at this time.
0 commit comments