Skip to content

Commit 1de8dc4

Browse files
committed
Added multibyte support
1 parent 430de46 commit 1de8dc4

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

autoload/mde_utils.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ vim9script
22

33
import autoload "./mde_constants.vim" as constants
44

5-
export var save_surround_view = {}
6-
75
export def Echoerr(msg: string)
86
echohl ErrorMsg | echom $'[markdown_extras] {msg}' | echohl None
97
enddef
@@ -332,10 +330,6 @@ export def SurroundSmart(style: string, type: string = '')
332330
endwhile
333331
endif
334332

335-
if !empty('save_surround_view')
336-
winrestview(save_surround_view)
337-
save_surround_view = {}
338-
endif
339333
enddef
340334

341335
export def IsLess(l1: list<number>, l2: list<number>): bool

ftplugin/markdown.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ if markdown_extras.use_prettier
5454
endif
5555

5656
def SetMarkdownOpFunc()
57-
utils.save_surround_view = winsaveview()
5857
&l:opfunc = function('utils.FormatWithoutMoving')
5958
enddef
6059

@@ -137,7 +136,6 @@ if empty(maparg('<Plug>MarkdownToggleCheck'))
137136
endif
138137

139138
def SetLinkOpFunc()
140-
utils.save_surround_view = winsaveview()
141139
&l:opfunc = function(links.CreateLink)
142140
enddef
143141

@@ -172,7 +170,6 @@ if exists('g:markdown_extras_config')
172170
endif
173171

174172
def SetSurroundOpFunc(style: string)
175-
utils.save_surround_view = winsaveview()
176173
&l:opfunc = function(Surround, [style])
177174
enddef
178175

@@ -217,7 +214,6 @@ if empty(maparg('<Plug>MarkdownRemove'))
217214
endif
218215

219216
def SetHighlightOpFunc()
220-
utils.save_surround_view = winsaveview()
221217
&l:opfunc = function(highlights.AddProp)
222218
enddef
223219

@@ -227,7 +223,6 @@ if empty(maparg('<Plug>MarkdownHighlight'))
227223
endif
228224

229225
def SetCodeBlock()
230-
utils.save_surround_view = winsaveview()
231226
&l:opfunc = function(utils.SetBlock)
232227
enddef
233228

@@ -238,7 +233,6 @@ endif
238233

239234

240235
def SetQuoteBlockOpFunc()
241-
utils.save_surround_view = winsaveview()
242236
&l:opfunc = function(utils.SetQuoteBlock)
243237
enddef
244238

0 commit comments

Comments
 (0)