File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ function! OmniSharp#stdio#Request(command, opts) abort
129
129
else
130
130
let bufnr = bufnr (' %' )
131
131
let lnum = get (a: opts , ' LineNum' , line (' .' ))
132
- let cnum = get (a: opts , ' ColNum' , col (' .' ))
132
+ let cnum = get (a: opts , ' ColNum' , charcol (' .' ))
133
133
endif
134
134
let host = OmniSharp#GetHost (bufnr )
135
135
let job = host.job
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Given cs():
11
11
12
12
Execute (rename constructor):
13
13
call OmniSharpTestInitializeBuffer('RenameTo')
14
- call search(" TestRenameTo()" )
14
+ call search(' TestRenameTo()' )
15
15
call OmniSharpTestAwait('OmniSharp#actions#rename#To', ['Renamed'])
16
16
17
17
Expect cs(should rename class):
@@ -21,3 +21,24 @@ Expect cs(should rename class):
21
21
{
22
22
}
23
23
}
24
+
25
+ Given cs():
26
+ public class TestOmdøbAnother
27
+ {
28
+ public TestOmdøbAnother()
29
+ {
30
+ }
31
+ }
32
+
33
+ Execute (rename after multi-byte characters):
34
+ call OmniSharpTestInitializeBuffer('RenameAnother')
35
+ call search('TestOmdøbAnother\ze()', 'e')
36
+ call OmniSharpTestAwait('OmniSharp#actions#rename#To', ['RenamedAnother'])
37
+
38
+ Expect cs(should rename class):
39
+ public class RenamedAnother
40
+ {
41
+ public RenamedAnother()
42
+ {
43
+ }
44
+ }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ let g:OmniSharp_start_without_solution = 1
21
21
let g: OmniSharp_highlighting = 0
22
22
let g: OmniSharp_selector_ui = ' '
23
23
let g: OmniSharp_open_quickfix = 0
24
- let g: OmniSharp_loglevel = ' info '
24
+ let g: OmniSharp_loglevel = ' none '
25
25
26
26
let g: OmniSharp_popup = 0
27
27
let g: OmniSharp_test_timeout = 10
You can’t perform that action at this time.
0 commit comments